diff --git a/compiler/preloader/src/org/jetbrains/jet/preloading/ClassPreloadingUtils.java b/compiler/preloader/src/org/jetbrains/jet/preloading/ClassPreloadingUtils.java index cd42f53fffb..e04643e2e4f 100644 --- a/compiler/preloader/src/org/jetbrains/jet/preloading/ClassPreloadingUtils.java +++ b/compiler/preloader/src/org/jetbrains/jet/preloading/ClassPreloadingUtils.java @@ -16,8 +16,6 @@ package org.jetbrains.jet.preloading; -import sun.misc.CompoundEnumeration; - import java.io.*; import java.net.MalformedURLException; import java.net.URL; @@ -154,7 +152,7 @@ public class ClassPreloadingUtils { protected Enumeration findResources(String name) throws IOException { URL resource = findResource(name); if (resource == null) { - return new CompoundEnumeration(new Enumeration[0]); + return Collections.enumeration(Collections.emptyList()); } // Only the first resource is loaded return Collections.enumeration(Collections.singletonList(resource));