mirror of
https://github.com/xerial/snappy-java.git
synced 2025-11-19 21:20:35 +01:00
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…
x
Reference in New Issue
Block a user