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 {


Reply via email to