From cb28405fe1a999cf4c8edc5afa2f61721a6a669d Mon Sep 17 00:00:00 2001 From: Till Schnell Date: Fri, 9 Apr 2021 20:04:58 +0200 Subject: [PATCH] made foreach over map not entry set --- src/test/java/inferWildcards/TestInferWildcardsJavaTx.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/inferWildcards/TestInferWildcardsJavaTx.java b/src/test/java/inferWildcards/TestInferWildcardsJavaTx.java index 38802c78..164d8d50 100644 --- a/src/test/java/inferWildcards/TestInferWildcardsJavaTx.java +++ b/src/test/java/inferWildcards/TestInferWildcardsJavaTx.java @@ -36,7 +36,7 @@ public class TestInferWildcardsJavaTx System.out.println("\nReplacements:"); Map sourceFiles = javaTXCompiler.getSourceFiles(); ReplaceTypeparamVisitor visitor = new ReplaceTypeparamVisitor(); - sourceFiles.entrySet().forEach(e -> e.getValue().accept(visitor)); + sourceFiles.forEach( (k, v) -> v.accept(visitor)); return visitor; }