mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
removed Integer and Long instantiations
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
This commit is contained in:
parent
9b16a6dfdc
commit
05c9d54c4f
@ -48,8 +48,8 @@ public class SecurityGroupWorkTracker {
|
||||
synchronized (this) {
|
||||
Integer outstanding = _unackedMessages.get(agentId);
|
||||
if (outstanding == null) {
|
||||
outstanding = new Integer(0);
|
||||
_unackedMessages.put(new Long(agentId), outstanding);
|
||||
outstanding = 0;
|
||||
_unackedMessages.put(agentId, outstanding);
|
||||
}
|
||||
currLength = outstanding.intValue();
|
||||
if (currLength + 1 > _bufferLength) {
|
||||
@ -58,7 +58,7 @@ public class SecurityGroupWorkTracker {
|
||||
s_logger.debug("SecurityGroupManager: dropping a message because there are more than " + currLength + " outstanding messages, total dropped=" + discarded);
|
||||
return false;
|
||||
}
|
||||
_unackedMessages.put(new Long(agentId), ++currLength);
|
||||
_unackedMessages.put(agentId, ++currLength);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user