made foreach over map not entry set

This commit is contained in:
Till Schnell 2021-04-09 20:04:58 +02:00
parent c7f91724a6
commit cb28405fe1

View File

@ -36,7 +36,7 @@ public class TestInferWildcardsJavaTx
System.out.println("\nReplacements:");
Map<File, SourceFile> sourceFiles = javaTXCompiler.getSourceFiles();
ReplaceTypeparamVisitor visitor = new ReplaceTypeparamVisitor();
sourceFiles.entrySet().forEach(e -> e.getValue().accept(visitor));
sourceFiles.forEach( (k, v) -> v.accept(visitor));
return visitor;
}