Moving a recently added trim() call in SwitchHandler after Null check. 47/147/1
authorMadhu Venugopal <vmadhu@cisco.com>
Sat, 13 Apr 2013 01:36:35 +0000 (18:36 -0700)
committerMadhu Venugopal <vmadhu@cisco.com>
Sat, 13 Apr 2013 01:36:35 +0000 (18:36 -0700)
Change-Id: Ib7f5787d612b0cca2b04383e684b6d91401ebb73
Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>
opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/SwitchHandler.java

index 78ab3275a4ac674333f8b4cb26464b61488d2cda..cba8b1d4f17c38a9d232e1b54a3463c96cfe8dbf 100644 (file)
@@ -781,8 +781,8 @@ public class SwitchHandler implements ISwitch {
     }
     
     private IMessageReadWrite getMessageReadWriteService() throws Exception {
-       String str = System.getProperty("secureChannelEnabled").trim();
-        return ((str != null) && (str.equalsIgnoreCase("true"))) ? 
+       String str = System.getProperty("secureChannelEnabled");
+        return ((str != null) && (str.trim().equalsIgnoreCase("true"))) ? 
                        new SecureMessageReadWriteService(socket, selector) : 
                        new MessageReadWriteService(socket, selector);
     }