From 4358b3fbc36da25a85ae1a5d2583afd15c93f7a7 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Mon, 15 Dec 2014 15:25:49 +0300 Subject: [PATCH] Do not use private Sun API in preloader --- .../org/jetbrains/jet/preloading/ClassPreloadingUtils.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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));