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

Commit f19da87

Browse files
committed
Merge pull request #74 from uv-beluga/adaptive_classloader
Don't rely on getSystemResourceAsStream to retrieve tld_lib.yml
2 parents 351b837 + 8657667 commit f19da87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/twitter/Regex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ private static String join(Collection<?> col, String delim) {
2525

2626
private static final Yaml yaml = new Yaml();
2727
private static final Map tlds = (Map)yaml.load(
28-
ClassLoader.getSystemResourceAsStream("tld_lib.yml")
28+
Regex.class.getClassLoader().getResourceAsStream("tld_lib.yml")
2929
);
3030
private static final List gTlds = (List)tlds.get("generic");
3131
private static final List cTlds = (List)tlds.get("country");

0 commit comments

Comments
 (0)