polish code (#2332)

This commit is contained in:
kezhenxu94 2019-03-08 15:37:20 +08:00 committed by 吴晟 Wu Sheng
parent c157b94d4a
commit a69d073180
1 changed files with 1 additions and 1 deletions

View File

@ -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();