forked from I2P_Developers/i2p.i2p
findbugs tunnel
This commit is contained in:
@@ -743,7 +743,7 @@ public class TunnelDispatcher implements Service {
|
|||||||
|
|
||||||
private static final int LEAVE_BATCH_TIME = 10*1000;
|
private static final int LEAVE_BATCH_TIME = 10*1000;
|
||||||
public void add(HopConfig cfg) {
|
public void add(HopConfig cfg) {
|
||||||
Long dropTime = new Long(cfg.getExpiration() + 2*Router.CLOCK_FUDGE_FACTOR + LEAVE_BATCH_TIME);
|
Long dropTime = Long.valueOf(cfg.getExpiration() + 2*Router.CLOCK_FUDGE_FACTOR + LEAVE_BATCH_TIME);
|
||||||
boolean noTunnels;
|
boolean noTunnels;
|
||||||
synchronized (LeaveTunnel.this) {
|
synchronized (LeaveTunnel.this) {
|
||||||
noTunnels = _configs.isEmpty();
|
noTunnels = _configs.isEmpty();
|
||||||
|
@@ -229,7 +229,7 @@ public class TunnelGateway {
|
|||||||
synchronized (Pending.this) {
|
synchronized (Pending.this) {
|
||||||
if (_messageIds == null)
|
if (_messageIds == null)
|
||||||
_messageIds = new ArrayList();
|
_messageIds = new ArrayList();
|
||||||
_messageIds.add(new Long(id));
|
_messageIds.add(Long.valueOf(id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user