mirror of https://github.com/apache/poi.git
findbugs fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735348 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
217ae0ea8f
commit
ee4b65394f
|
@ -639,8 +639,8 @@ public class CellNumberFormatter extends CellFormatter {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
// New we check to see if we should remove the integer part
|
// New we check to see if we should remove the integer part
|
||||||
boolean numNoZero = !numeratorSpecials.contains('0');
|
boolean numNoZero = !hasChar('0', numeratorSpecials);
|
||||||
boolean intNoZero = !integerSpecials.contains('0');
|
boolean intNoZero = !hasChar('0', integerSpecials);
|
||||||
boolean intOnlyHash = integerSpecials.isEmpty() || (integerSpecials.size() == 1 && integerSpecials.contains('#'));
|
boolean intOnlyHash = integerSpecials.isEmpty() || (integerSpecials.size() == 1 && integerSpecials.contains('#'));
|
||||||
|
|
||||||
boolean removeBecauseZero = fractional == 0 && (intOnlyHash || numNoZero);
|
boolean removeBecauseZero = fractional == 0 && (intOnlyHash || numNoZero);
|
||||||
|
|
Loading…
Reference in New Issue