polish code (#2332)
This commit is contained in:
parent
c157b94d4a
commit
a69d073180
|
|
@ -48,7 +48,7 @@ public class AgentPackagePath {
|
|||
private static File findPath() throws AgentPackageNotFoundException {
|
||||
String classResourcePath = AgentPackagePath.class.getName().replaceAll("\\.", "/") + ".class";
|
||||
|
||||
URL resource = AgentPackagePath.class.getClassLoader().getSystemClassLoader().getResource(classResourcePath);
|
||||
URL resource = ClassLoader.getSystemClassLoader().getResource(classResourcePath);
|
||||
if (resource != null) {
|
||||
String urlString = resource.toString();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue