db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r513233 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/util/ReuseFactory.java
Date Thu, 01 Mar 2007 09:23:56 GMT
Author: kahatlen
Date: Thu Mar  1 01:23:55 2007
New Revision: 513233

URL: http://svn.apache.org/viewvc?view=rev&rev=513233
Log:
DERBY-2383: ReuseFactory should use the constants in java.lang.Boolean

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/util/ReuseFactory.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/util/ReuseFactory.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/util/ReuseFactory.java?view=diff&rev=513233&r1=513232&r2=513233
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/util/ReuseFactory.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/util/ReuseFactory.java Thu Mar 
1 01:23:55 2007
@@ -115,12 +115,9 @@
 			return new Long(i);
 	}
 
-    private static final Boolean staticFalse = new Boolean( false);
-    private static final Boolean staticTrue = new Boolean( true);
-
     public static Boolean getBoolean( boolean b)
     {
-        return b ? staticTrue : staticFalse;
+        return b ? Boolean.TRUE : Boolean.FALSE;
     }
 
 	private static final byte[] staticZeroLenByteArray = new byte[0];



Mime
View raw message