Author: kiwiwings
Date: Wed Mar 16 23:36:17 2016
New Revision: 1735348

URL: http://svn.apache.org/viewvc?rev=1735348&view=rev
Log:
findbugs fix

Modified:
    poi/trunk/src/java/org/apache/poi/ss/format/CellNumberFormatter.java

Modified: poi/trunk/src/java/org/apache/poi/ss/format/CellNumberFormatter.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/format/CellNumberFormatter.java?rev=1735348&r1=1735347&r2=1735348&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/format/CellNumberFormatter.java 
(original)
+++ poi/trunk/src/java/org/apache/poi/ss/format/CellNumberFormatter.java Wed 
Mar 16 23:36:17 2016
@@ -639,8 +639,8 @@ public class CellNumberFormatter extends
                 return;
             } else {
                 // New we check to see if we should remove the integer part
-                boolean numNoZero = !numeratorSpecials.contains('0');
-                boolean intNoZero = !integerSpecials.contains('0');
+                boolean numNoZero = !hasChar('0', numeratorSpecials);
+                boolean intNoZero = !hasChar('0', integerSpecials);
                 boolean intOnlyHash = integerSpecials.isEmpty() || 
(integerSpecials.size() == 1 && integerSpecials.contains('#'));
 
                 boolean removeBecauseZero     = fractional == 0 && 
(intOnlyHash || numNoZero);



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to