mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UrlClassLoader deprecation updates
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user