Cleanup (obsolete API deprecated)
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Thu, 27 Nov 2014 12:57:11 +0000 (13:57 +0100)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Thu, 27 Nov 2014 12:57:11 +0000 (13:57 +0100)
platform/util/src/com/intellij/util/lang/ClassPath.java
platform/util/src/com/intellij/util/lang/UrlClassLoader.java

index e47f9e0f42b92b210db13ca3ad25ccc17952fba0..3e85486e2219c2aec03d505b2f0cce8483209b16 100644 (file)
@@ -58,7 +58,7 @@ public class ClassPath {
     push(urls);
   }
 
-  // Accessed by reflection from PluginClassLoader // TODO: do we need it?
+  /** @deprecated to be removed in IDEA 15 */
   void addURL(URL url) {
     push(Collections.singletonList(url));
   }
index 8e2d586ec4e277db79da878f921c65f7391103bf..f25f29c0ef4cadef04a96acf935b4f6fcd72ebfd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2013 JetBrains s.r.o.
+ * Copyright 2000-2014 JetBrains s.r.o.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -132,6 +132,8 @@ public class UrlClassLoader extends ClassLoader {
     }
   }
 
+  /** @deprecated to be removed in IDEA 15 */
+  @SuppressWarnings({"unused", "deprecation"})
   public void addURL(URL url) {
     myClassPath.addURL(url);
     myURLs.add(url);