UrlClassLoader deprecation updates

This commit is contained in:
Nicolay Mitropolsky
2017-07-05 18:32:29 +03:00
parent d295313a04
commit fd1ec0919b
2 changed files with 9 additions and 2 deletions
@@ -76,7 +76,10 @@ public class ClassPath {
push(urls);
}
/** @deprecated to be removed in IDEA 15 */
/**
* @deprecated Adding additional urls to classpath at runtime could lead to hard-to-debug errors
*/
@Deprecated
void addURL(URL url) {
push(Collections.singletonList(url));
}
@@ -195,8 +195,12 @@ public class UrlClassLoader extends ClassLoader {
}
}
/** @deprecated to be removed in IDEA 15 */
/**
* @deprecated Adding additional urls to classloader at runtime could lead to hard-to-debug errors
* <b>Note:</b> Used via reflection because of classLoaders incompatibility
*/
@SuppressWarnings({"unused", "deprecation"})
@Deprecated
public void addURL(URL url) {
getClassPath().addURL(url);
myURLs.add(url);