Cleanup (dead code; typo)

This commit is contained in:
Roman Shevchenko
2017-04-25 14:16:08 +02:00
parent 0cc34824f0
commit ddec3c7b86
@@ -293,7 +293,7 @@ public class UrlClassLoader extends ClassLoader {
private Resource _getResource(final String name) {
String n = FileUtil.toCanonicalUriPath(name);
Resource resource = getClassPath().getResource(n, true);
if (resource == null && n.startsWith("/")) { // compatibility with existing code, nonstd classloader behavior
if (resource == null && n.startsWith("/")) { // compatibility with existing code, non-standard classloader behavior
resource = getClassPath().getResource(n.substring(1), true);
}
return resource;
@@ -350,13 +350,6 @@ public class UrlClassLoader extends ClassLoader {
return fileName;
}
private static String getPlatformName() {
if (SystemInfo.isWindows) return "win/";
else if (SystemInfo.isMac) return "mac/";
else if (SystemInfo.isLinux) return "linux/";
else return "";
}
// called by a parent class on Java 7+
@SuppressWarnings("unused")
protected Object getClassLoadingLock(String className) {