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; }