findbugs tunnel

This commit is contained in:
zzz
2011-01-10 16:15:31 +00:00
parent e4bb053a61
commit c29d0917e9
2 changed files with 2 additions and 2 deletions

View File

@@ -743,7 +743,7 @@ public class TunnelDispatcher implements Service {
private static final int LEAVE_BATCH_TIME = 10*1000;
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;
synchronized (LeaveTunnel.this) {
noTunnels = _configs.isEmpty();

View File

@@ -229,7 +229,7 @@ public class TunnelGateway {
synchronized (Pending.this) {
if (_messageIds == null)
_messageIds = new ArrayList();
_messageIds.add(new Long(id));
_messageIds.add(Long.valueOf(id));
}
}
/**