diff --git a/UnicodeJsps/src/main/java/org/unicode/jsp/CachedProps.java b/UnicodeJsps/src/main/java/org/unicode/jsp/CachedProps.java index 8e52500eb..35e845d58 100644 --- a/UnicodeJsps/src/main/java/org/unicode/jsp/CachedProps.java +++ b/UnicodeJsps/src/main/java/org/unicode/jsp/CachedProps.java @@ -5,6 +5,7 @@ import com.google.common.collect.ImmutableMultimap; import com.google.common.collect.Multimap; import com.ibm.icu.dev.util.UnicodeMap; +import com.ibm.icu.lang.UCharacter; import com.ibm.icu.util.ICUUncheckedIOException; import com.ibm.icu.util.VersionInfo; import java.io.DataInputStream; @@ -26,7 +27,6 @@ import org.unicode.cldr.draft.FileUtilities; import org.unicode.jsp.UnicodeDataInput.ItemReader; import org.unicode.props.UnicodeProperty; -import org.unicode.text.utility.Settings; public class CachedProps { public static final boolean IS_BETA = true; @@ -44,8 +44,7 @@ public class CachedProps { final BiMultimap nameToAliases = new BiMultimap(null, null); final Map> nameToValueToAliases = new LinkedHashMap(); - static String jspVersion = IS_BETA ? Settings.lastVersion : Settings.latestVersion; - static VersionInfo jspVersionInfo = VersionInfo.getInstance(jspVersion); + static VersionInfo jspVersionInfo = UCharacter.getUnicodeVersion(); static CachedProps CACHED_PROPS = getInstance(jspVersionInfo); static UnicodeProperty NAMES = CachedProps.CACHED_PROPS.getProperty("Name"); diff --git a/UnicodeJsps/src/main/java/org/unicode/jsp/UnicodeJsp.java b/UnicodeJsps/src/main/java/org/unicode/jsp/UnicodeJsp.java index e2390b720..8d514843a 100644 --- a/UnicodeJsps/src/main/java/org/unicode/jsp/UnicodeJsp.java +++ b/UnicodeJsps/src/main/java/org/unicode/jsp/UnicodeJsp.java @@ -25,6 +25,7 @@ import org.unicode.idna.Idna2008; import org.unicode.idna.Uts46; import org.unicode.jsp.UnicodeUtilities.CodePointShower; +import org.unicode.text.utility.Settings; public class UnicodeJsp { @@ -420,7 +421,7 @@ public static String getVersions() { : "

Properties use ICU for Unicode V" + UCharacter.getUnicodeVersion().getVersionString(2, 2) + "; the beta properties support Unicode V" - + CachedProps.CACHED_PROPS.version.getVersionString(2, 2) + + VersionInfo.getInstance(Settings.latestVersion).getVersionString(2, 2) + "β. " + "For more information, see Unicode Utilities Beta.

";