< prev index next >

src/java.base/share/classes/java/lang/reflect/Proxy.java

Print this page
8200127: Replace collection.stream().forEach() with collection.forEach()
Reviewed-by: alanb

@@ -591,12 +591,11 @@
             if (isDebug()) {
                 System.err.format("PROXY: %s/%s defined by %s%n",
                                   module.getName(), cn, loader);
             }
             if (isDebug("debug")) {
-                interfaces.stream()
-                          .forEach(c -> System.out.println(toDetails(c)));
+                interfaces.forEach(c -> System.out.println(toDetails(c)));
             }
         }
 
         private static final String DEBUG =
             GetPropertyAction.privilegedGetProperty("jdk.proxy.debug", "");
< prev index next >