Browse Source

ZOOKEEPER-1979. Fix Performance Warnings found by Findbugs 2.0.3 (Hongchao Deng via phunt)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1612457 13f79535-47bb-0310-9956-ffa450edef68
Patrick D. Hunt 11 years ago
parent
commit
13e628085a

+ 3 - 0
CHANGES.txt

@@ -720,6 +720,9 @@ BUGFIXES:
   ZOOKEEPER-1975. Turn off "internationalization warnings" in findbugs
   exclude file (phunt)
 
+  ZOOKEEPER-1979. Fix Performance Warnings found by Findbugs 2.0.3
+  (Hongchao Deng via phunt)
+
 IMPROVEMENTS:
 
   ZOOKEEPER-1170. Fix compiler (eclipse) warnings: unused imports,

+ 1 - 1
src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java

@@ -144,7 +144,7 @@ public class QuorumCnxManager {
         
         String cnxToValue = System.getProperty("zookeeper.cnxTimeout");
         if(cnxToValue != null){
-            this.cnxTO = new Integer(cnxToValue); 
+            this.cnxTO = Integer.parseInt(cnxToValue);
         }
         
         this.self = self;