jaxp/src/java.xml/share/classes/javax/xml/transform/SecuritySupport.java
changeset 31284 e9b8469adb9a
parent 25868 686eef1e7a79
child 45853 bfa06be36a17
--- a/jaxp/src/java.xml/share/classes/javax/xml/transform/SecuritySupport.java	Wed Jul 05 20:38:50 2017 +0200
+++ b/jaxp/src/java.xml/share/classes/javax/xml/transform/SecuritySupport.java	Tue Jun 23 19:50:10 2015 +0200
@@ -26,9 +26,7 @@
 package javax.xml.transform;
 
 import java.security.*;
-import java.net.*;
 import java.io.*;
-import java.util.*;
 
 /**
  * This class is duplicated for each JAXP subpackage so keep it in sync.
@@ -79,23 +77,6 @@
         }
     }
 
-    InputStream getResourceAsStream(final ClassLoader cl,
-                                           final String name)
-    {
-        return (InputStream)
-            AccessController.doPrivileged(new PrivilegedAction() {
-                public Object run() {
-                    InputStream ris;
-                    if (cl == null) {
-                        ris = Object.class.getResourceAsStream(name);
-                    } else {
-                        ris = cl.getResourceAsStream(name);
-                    }
-                    return ris;
-                }
-            });
-    }
-
     boolean doesFileExist(final File f) {
     return ((Boolean)
             AccessController.doPrivileged(new PrivilegedAction() {