I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 6ee9b79e authored by zzz's avatar zzz
Browse files

generics, final

parent da482c37
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ import net.i2p.util.Log; ...@@ -34,7 +34,7 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
class RequestLeaseSetMessageHandler extends HandlerImpl { class RequestLeaseSetMessageHandler extends HandlerImpl {
private final Map _existingLeaseSets; private final Map<Destination, LeaseInfo> _existingLeaseSets;
public RequestLeaseSetMessageHandler(I2PAppContext context) { public RequestLeaseSetMessageHandler(I2PAppContext context) {
super(context, RequestLeaseSetMessage.MESSAGE_TYPE); super(context, RequestLeaseSetMessage.MESSAGE_TYPE);
...@@ -59,7 +59,7 @@ class RequestLeaseSetMessageHandler extends HandlerImpl { ...@@ -59,7 +59,7 @@ class RequestLeaseSetMessageHandler extends HandlerImpl {
leaseSet.setDestination(session.getMyDestination()); leaseSet.setDestination(session.getMyDestination());
// reuse the old keys for the client // reuse the old keys for the client
LeaseInfo li = (LeaseInfo) _existingLeaseSets.get(session.getMyDestination()); LeaseInfo li = _existingLeaseSets.get(session.getMyDestination());
if (li == null) { if (li == null) {
li = new LeaseInfo(session.getMyDestination()); li = new LeaseInfo(session.getMyDestination());
_existingLeaseSets.put(session.getMyDestination(), li); _existingLeaseSets.put(session.getMyDestination(), li);
...@@ -98,11 +98,11 @@ class RequestLeaseSetMessageHandler extends HandlerImpl { ...@@ -98,11 +98,11 @@ class RequestLeaseSetMessageHandler extends HandlerImpl {
} }
private static class LeaseInfo { private static class LeaseInfo {
private PublicKey _pubKey; private final PublicKey _pubKey;
private PrivateKey _privKey; private final PrivateKey _privKey;
private SigningPublicKey _signingPubKey; private final SigningPublicKey _signingPubKey;
private SigningPrivateKey _signingPrivKey; private final SigningPrivateKey _signingPrivKey;
private Destination _dest; private final Destination _dest;
public LeaseInfo(Destination dest) { public LeaseInfo(Destination dest) {
_dest = dest; _dest = dest;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment