Skip to content

Commit 7fda4b0

Browse files
committed
Update CachedProps.java
programmatically determine jspVersion instead of hard-code
1 parent 39aed55 commit 7fda4b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

UnicodeJsps/src/main/java/org/unicode/jsp/CachedProps.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.unicode.cldr.draft.FileUtilities;
2727
import org.unicode.jsp.UnicodeDataInput.ItemReader;
2828
import org.unicode.props.UnicodeProperty;
29+
import org.unicode.text.utility.Settings;
2930

3031
public class CachedProps {
3132
public static final boolean IS_BETA = true;
@@ -43,7 +44,9 @@ public class CachedProps {
4344
final BiMultimap<String, String> nameToAliases = new BiMultimap<String, String>(null, null);
4445
final Map<String, BiMultimap<String, String>> nameToValueToAliases = new LinkedHashMap();
4546

46-
static CachedProps CACHED_PROPS = getInstance(VersionInfo.getInstance(15, 1));
47+
static String jspVersion = IS_BETA ? Settings.lastVersion : Settings.latestVersion;
48+
static VersionInfo jspVersionInfo = VersionInfo.getInstance(jspVersion);
49+
static CachedProps CACHED_PROPS = getInstance(jspVersionInfo);
4750

4851
static UnicodeProperty NAMES = CachedProps.CACHED_PROPS.getProperty("Name");
4952

0 commit comments

Comments
 (0)