]> granicus.if.org Git - icu/commitdiff
ICU-11918 clean-up LocaleMatcher API and turn off doclint html check if V8
authorScott Russell <DTownSMR@gmail.com>
Wed, 23 Sep 2015 13:25:42 +0000 (13:25 +0000)
committerScott Russell <DTownSMR@gmail.com>
Wed, 23 Sep 2015 13:25:42 +0000 (13:25 +0000)
X-SVN-Rev: 38004

icu4j/build.xml
icu4j/main/classes/core/src/com/ibm/icu/util/LocaleMatcher.java

index 3501bb13f8e6f9a8ff6ab1ea7b9cdce71bd8c1e4..e3c1d70d5f59870f020a7db7ba651852464814a0 100644 (file)
             <contains string="${java.version}" substring="1.8."/>
         </or>
     </condition>
+    <condition property="is.pre.java8">
+        <or>
+            <contains string="${java.version}" substring="1.5."/>
+            <contains string="${java.version}" substring="1.6."/>
+            <contains string="${java.version}" substring="1.7."/>
+        </or>
+    </condition>
+    
 
     <!-- Build environment info -->
     <property name="env.COMPUTERNAME" value="${env.HOSTNAME}"/>
         </condition>
     </target>
 
-    <target name="_docsWithJCite" depends="_docsStyleSheet" if="jcite.libs">
+    <!-- doclint in V8 is too strict to handle existing html in javadoc -->
+    <target name="_setLintV8" unless="is.pre.java8">
+        <property name="lintParam" value="-Xdoclint:-html"/>
+    </target>
+    <target name="_setLintPreV8" if="is.pre.java8">
+        <property name="lintParam" value=""/>
+    </target>
+    
+    <target name="_docsWithJCite" depends="_docsStyleSheet, _setLintV8, _setLintPreV8" if="jcite.libs">
         <echo message="JCite library path:             ${jcite.libs}"/>
         <echo message="JCite additional source path:   ${jcite.addl.src}"/>
         <echo message="Custom stylesheet:              ${docs.style.sheet}"/>
                 docencoding="UTF-8"
                 charset="UTF-8"
                 bottom="&lt;font size=-1&gt;Copyright (c) ${current.year} IBM Corporation and others.&lt;/font&gt;"
-                additionalparam="-breakiterator -use -tagletpath ${icu4j.build-tools.jar}${path.separator}${jcite.libs} -taglet com.ibm.icu.dev.tool.docs.ICUTaglet -taglet ch.arrenbrecht.jcite.JCiteTaglet -J-Djcitesourcepath=${jcite.addl.src} -J-Dfile.encoding=UTF-8"
+                additionalparam="${lintParam} -breakiterator -use -tagletpath ${icu4j.build-tools.jar}${path.separator}${jcite.libs} -taglet com.ibm.icu.dev.tool.docs.ICUTaglet -taglet ch.arrenbrecht.jcite.JCiteTaglet -J-Djcitesourcepath=${jcite.addl.src} -J-Dfile.encoding=UTF-8"
                 link="${icu4j.api.doc.jdk.link}"
                 source="1.5"
                 stylesheetfile="${docs.style.sheet}">
index baa7aee268843c330d9c7b5fdf119091f5fb464a..e17938cd9268ed67d5449d26659b3311829bb2c1 100644 (file)
@@ -49,7 +49,7 @@ import com.ibm.icu.impl.Utility;
  */
 public class LocaleMatcher {
 
-    public static final boolean DEBUG = false;
+    private static final boolean DEBUG = false;
 
     private static final ULocale UNKNOWN_LOCALE = new ULocale("und");
 
@@ -284,7 +284,7 @@ public class LocaleMatcher {
         return bestTableMatch;
     }
     
-    public static class OutputDouble { // TODO, move to where OutputInt is
+    private static class OutputDouble { // TODO, move to where OutputInt is
         double value;
     }