File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
utils/src/main/java/org/owasp/dependencycheck/utils Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 2727import java .nio .file .Files ;
2828import java .nio .file .Path ;
2929import java .util .Comparator ;
30- import java .util .Iterator ;
3130import java .util .UUID ;
3231import java .util .stream .Stream ;
3332
@@ -174,20 +173,6 @@ public static InputStream getResourceAsStream(@NotNull String resource) throws F
174173 return inputStream ;
175174 }
176175
177-
178- /** Gets the {@link java.util.Iterator<java.net.URL>} for this resource
179- *
180- * @param resource path
181- * @return iterator of each resource URL
182- * @throws IOException if I/O error occurs
183- */
184- public static Iterator <URL > getResources (@ NotNull String resource ) throws IOException {
185- final ClassLoader classLoader = FileUtils .class .getClassLoader ();
186- return classLoader != null
187- ? classLoader .getResources (resource ).asIterator ()
188- : ClassLoader .getSystemResources (resource ).asIterator ();
189- }
190-
191176 /**
192177 * Returns a File object for the given resource. The resource is attempted
193178 * to be loaded from the class loader.
You can’t perform that action at this time.
0 commit comments