directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r491689 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BooleanUtils.java
Date Mon, 01 Jan 2007 23:18:58 GMT
Author: elecharny
Date: Mon Jan  1 15:18:58 2007
New Revision: 491689

URL: http://svn.apache.org/viewvc?view=rev&rev=491689
Log:
Little improvment : avoided a call to new Integer()

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BooleanUtils.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BooleanUtils.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BooleanUtils.java?view=diff&rev=491689&r1=491688&r2=491689
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BooleanUtils.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BooleanUtils.java
Mon Jan  1 15:18:58 2007
@@ -36,9 +36,9 @@
  */
 public class BooleanUtils
 {
-    private static final Integer INTEGER_ZERO = new Integer( 0 );
+    private static final Integer INTEGER_ZERO = Integer.valueOf( 0 );
 
-    private static final Integer INTEGER_ONE = new Integer( 1 );
+    private static final Integer INTEGER_ONE = Integer.valueOf( 1 );
 
 
     /**



Mime
View raw message