]> source.dussan.org Git - poi.git/commitdiff
use equalsIgnoreCase for case-insensitive string comparisons
authorJaven O'Neal <onealj@apache.org>
Thu, 22 Sep 2016 03:48:49 +0000 (03:48 +0000)
committerJaven O'Neal <onealj@apache.org>
Thu, 22 Sep 2016 03:48:49 +0000 (03:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1761843 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/usermodel/HSSFDataFormat.java

index 6eecc7b2c9c0dbe79062546dde19efd9aaa851d6..23fe8cad767fde1b7382065b59dcfec0d2dfccec 100644 (file)
@@ -20,7 +20,6 @@ package org.apache.poi.hssf.usermodel;
 import java.util.Arrays;
 import java.util.Iterator;
 import java.util.List;
-import java.util.Locale;
 import java.util.Vector;
 
 import org.apache.poi.hssf.model.InternalWorkbook;
@@ -90,7 +89,7 @@ public final class HSSFDataFormat implements DataFormat {
        public short getFormat(String pFormat) {
           // Normalise the format string
                String format;
-               if (pFormat.toUpperCase(Locale.ROOT).equals("TEXT")) {
+               if (pFormat.equalsIgnoreCase("TEXT")) {
                        format = "@";
                } else {
                        format = pFormat;