You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2007/03/01 10:23:56 UTC
svn commit: r513233 -
/db/derby/code/trunk/java/engine/org/apache/derby/iapi/util/ReuseFactory.java
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];