commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1403380 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/FileSystemConfigBuilder.java
Date Mon, 29 Oct 2012 15:43:07 GMT
Author: ggregory
Date: Mon Oct 29 15:43:06 2012
New Revision: 1403380

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

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/FileSystemConfigBuilder.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/FileSystemConfigBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/FileSystemConfigBuilder.java?rev=1403380&r1=1403379&r2=1403380&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/FileSystemConfigBuilder.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/FileSystemConfigBuilder.java
Mon Oct 29 15:43:06 2012
@@ -117,7 +117,7 @@ public abstract class FileSystemConfigBu
     /** @since 2.0 */
     protected boolean getBoolean(FileSystemOptions opts, String name, boolean defaultValue)
     {
-        return getBoolean(opts, name, new Boolean(defaultValue)).booleanValue();
+        return getBoolean(opts, name, Boolean.valueOf(defaultValue).booleanValue();
     }
 
     /** @since 2.0 */



Mime
View raw message