Changeset 7a6e7ba


Ignore:
Timestamp:
Mar 27, 2012 8:07:12 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d3578e2
Parents:
97f2328
Message:

generics and final

Location:
router/java/src/net/i2p/router/networkdb/kademlia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/FloodfillNetworkDatabaseFacade.java

    r97f2328 r7a6e7ba  
    168168        Hash rkey = _context.routingKeyGenerator().getRoutingKey(key);
    169169        FloodfillPeerSelector sel = (FloodfillPeerSelector)getPeerSelector();
    170         List peers = sel.selectFloodfillParticipants(rkey, MAX_TO_FLOOD, getKBuckets());
     170        List<Hash> peers = sel.selectFloodfillParticipants(rkey, MAX_TO_FLOOD, getKBuckets());
    171171        int flooded = 0;
    172172        for (int i = 0; i < peers.size(); i++) {
    173             Hash peer = (Hash)peers.get(i);
     173            Hash peer = peers.get(i);
    174174            RouterInfo target = lookupRouterInfoLocally(peer);
    175175            if ( (target == null) || (_context.shitlist().isShitlisted(peer)) )
  • router/java/src/net/i2p/router/networkdb/kademlia/HandleFloodfillDatabaseStoreMessageJob.java

    r97f2328 r7a6e7ba  
    3030 */
    3131public class HandleFloodfillDatabaseStoreMessageJob extends JobImpl {
    32     private Log _log;
    33     private DatabaseStoreMessage _message;
    34     private RouterIdentity _from;
     32    private final Log _log;
     33    private final DatabaseStoreMessage _message;
     34    private final RouterIdentity _from;
    3535    private Hash _fromHash;
    36     private FloodfillNetworkDatabaseFacade _facade;
     36    private final FloodfillNetworkDatabaseFacade _facade;
    3737
    3838    public HandleFloodfillDatabaseStoreMessageJob(RouterContext ctx, DatabaseStoreMessage receivedMessage, RouterIdentity from, Hash fromHash, FloodfillNetworkDatabaseFacade facade) {
Note: See TracChangeset for help on using the changeset viewer.