use parent
This commit is contained in:
parent
ecd8aaa3e9
commit
387ffa34f0
|
@ -86,7 +86,7 @@ public class SnappyLoader
|
||||||
|
|
||||||
private static ClassLoader getRootClassLoader() {
|
private static ClassLoader getRootClassLoader() {
|
||||||
ClassLoader cl = SnappyLoader.class.getClassLoader();
|
ClassLoader cl = SnappyLoader.class.getClassLoader();
|
||||||
while (cl.getParent() != null) {
|
if (cl.getParent() != null) {
|
||||||
cl = cl.getParent();
|
cl = cl.getParent();
|
||||||
}
|
}
|
||||||
return cl;
|
return cl;
|
||||||
|
|
Loading…
Reference in New Issue