Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #74 from uv-beluga/adaptive_classloader
Browse files Browse the repository at this point in the history
Don't rely on getSystemResourceAsStream to retrieve tld_lib.yml
  • Loading branch information
jakl committed Nov 19, 2014
2 parents 351b837 + 8657667 commit f19da87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/twitter/Regex.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private static String join(Collection<?> col, String delim) {

private static final Yaml yaml = new Yaml();
private static final Map tlds = (Map)yaml.load(
ClassLoader.getSystemResourceAsStream("tld_lib.yml")
Regex.class.getClassLoader().getResourceAsStream("tld_lib.yml")
);
private static final List gTlds = (List)tlds.get("generic");
private static final List cTlds = (List)tlds.get("country");
Expand Down

0 comments on commit f19da87

Please sign in to comment.