empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r1367530 - /empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
Date Tue, 31 Jul 2012 13:11:58 GMT
Author: francisdb
Date: Tue Jul 31 13:11:58 2012
New Revision: 1367530

URL: http://svn.apache.org/viewvc?rev=1367530&view=rev
Log:
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf()
instead.

Modified:
    empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java

Modified: empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java?rev=1367530&r1=1367529&r2=1367530&view=diff
==============================================================================
--- empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
(original)
+++ empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
Tue Jul 31 13:11:58 2012
@@ -666,7 +666,7 @@ public class TagEncodingHelper implement
             log.debug(tag.getClass().getSimpleName()+" for "+getColumn().getName()+" has
no value expression!");
         */
         // merken
-        hasValueExpr = new Boolean(ve != null);
+        hasValueExpr = Boolean.valueOf(ve != null);
         return hasValueExpr.booleanValue();
     }
     



Mime
View raw message