Skip to content

Commit

Permalink
Update CachedProps.java
Browse files Browse the repository at this point in the history
programmatically determine jspVersion instead of hard-code
  • Loading branch information
josh-hadley committed May 31, 2023
1 parent 39aed55 commit 7fda4b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion UnicodeJsps/src/main/java/org/unicode/jsp/CachedProps.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
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;
Expand All @@ -43,7 +44,9 @@ public class CachedProps {
final BiMultimap<String, String> nameToAliases = new BiMultimap<String, String>(null, null);
final Map<String, BiMultimap<String, String>> nameToValueToAliases = new LinkedHashMap();

static CachedProps CACHED_PROPS = getInstance(VersionInfo.getInstance(15, 1));
static String jspVersion = IS_BETA ? Settings.lastVersion : Settings.latestVersion;
static VersionInfo jspVersionInfo = VersionInfo.getInstance(jspVersion);
static CachedProps CACHED_PROPS = getInstance(jspVersionInfo);

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

Expand Down

0 comments on commit 7fda4b0

Please sign in to comment.