]> source.dussan.org Git - poi.git/commitdiff
add warnings that AnalysisToolPak inconsistently handles case-sensitivity of function...
authorJaven O'Neal <onealj@apache.org>
Sat, 11 Jun 2016 01:41:54 +0000 (01:41 +0000)
committerJaven O'Neal <onealj@apache.org>
Sat, 11 Jun 2016 01:41:54 +0000 (01:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1747835 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/formula/atp/AnalysisToolPak.java

index aa04f3b8d62729737a86898897429c63df0b66e3..a0da336d77c547034b85a8f6e601f7bec98e4048 100644 (file)
@@ -71,6 +71,7 @@ public final class AnalysisToolPak implements UDFFinder {
         // if you save such a .xlsx workbook as .xls
         if(name.startsWith("_xlfn.")) name = name.substring(6);
 
+        // FIXME: inconsistent case-sensitivity
         return _functionsByName.get(name.toUpperCase(Locale.ROOT));
     }
 
@@ -197,6 +198,7 @@ public final class AnalysisToolPak implements UDFFinder {
 
     public static boolean isATPFunction(String name){
         AnalysisToolPak inst = (AnalysisToolPak)instance;
+        // FIXME: inconsistent case-sensitivity
         return inst._functionsByName.containsKey(name);
     }
 
@@ -261,6 +263,7 @@ public final class AnalysisToolPak implements UDFFinder {
                     ". You cannot override POI's implementations of Excel functions");
         }
 
+        // FIXME: inconsistent case-sensitivity
         inst._functionsByName.put(name, func);
     }
 }