Merge "Stop creating new Boolean, move to use valueOf method"
authorGiovanni Meo <gmeo@cisco.com>
Wed, 25 Sep 2013 14:36:16 +0000 (14:36 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 25 Sep 2013 14:36:16 +0000 (14:36 +0000)
opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronNetworksNorthbound.java

index 2505da6..b77536b 100644 (file)
@@ -103,11 +103,11 @@ public class NeutronNetworksNorthbound {
             Boolean bShared = null;\r
             Boolean bRouterExternal = null;\r
             if (queryAdminStateUp != null)\r
-                bAdminStateUp = new Boolean(queryAdminStateUp);\r
+                bAdminStateUp = Boolean.valueOf(queryAdminStateUp);\r
             if (queryShared != null)\r
-                bShared = new Boolean(queryShared);\r
+                bShared = Boolean.valueOf(queryShared);\r
             if (queryRouterExternal != null)\r
-                bRouterExternal = new Boolean(queryRouterExternal);\r
+                bRouterExternal = Boolean.valueOf(queryRouterExternal);\r
             if ((queryID == null || queryID.equals(oSN.getID())) &&\r
                     (queryName == null || queryName.equals(oSN.getNetworkName())) &&\r
                     (bAdminStateUp == null || bAdminStateUp.booleanValue() == oSN.isAdminStateUp()) &&\r