You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2014/08/30 11:53:25 UTC
svn commit: r1621442 -
/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java
Author: adrianc
Date: Sat Aug 30 09:53:25 2014
New Revision: 1621442
URL: http://svn.apache.org/r1621442
Log:
Small code cleanup - use auto-boxing.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java?rev=1621442&r1=1621441&r2=1621442&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java Sat Aug 30 09:53:25 2014
@@ -129,13 +129,13 @@ public class SequenceUtil {
}
synchronized (this) {
if ((curSeqId + stagger) <= maxSeqId) {
- Long retSeqId = Long.valueOf(curSeqId);
+ long retSeqId = curSeqId;
curSeqId += stagger;
return retSeqId;
} else {
fillBank(stagger);
if ((curSeqId + stagger) <= maxSeqId) {
- Long retSeqId = Long.valueOf(curSeqId);
+ long retSeqId = curSeqId;
curSeqId += stagger;
return retSeqId;
} else {