diff --git a/JavaCompilerPlugin/bundles/JavaCompilerPlugin.Plugin/src/typinferenzplugin/Typinferenz.java b/JavaCompilerPlugin/bundles/JavaCompilerPlugin.Plugin/src/typinferenzplugin/Typinferenz.java index 2f0dec9..5356e08 100644 --- a/JavaCompilerPlugin/bundles/JavaCompilerPlugin.Plugin/src/typinferenzplugin/Typinferenz.java +++ b/JavaCompilerPlugin/bundles/JavaCompilerPlugin.Plugin/src/typinferenzplugin/Typinferenz.java @@ -97,10 +97,10 @@ public class Typinferenz { return this.tiResults; } - public Vector updateWithResult(Vector ret, List tiResults) { - this.tiResults.addAll(tiResults); + public Vector updateWithResult(Vector ret, List newResults) { + this.tiResults.addAll(newResults); Set tips = new HashSet<>(); - for (ResultSet tiResult : tiResults) { + for (ResultSet tiResult : newResults) { tips.addAll(TypeInsertFactory.createTypeInsertPoints(parsedSource, tiResult)); for (TypeInsert p : tips) { TypeReplaceMarker toAdd = new TypeReplaceMarker(editor, tiResult, p); @@ -115,9 +115,9 @@ public class Typinferenz { String outputDirectory = editor.getFilePath().toString(); outputDirectory = outputDirectory.substring(0, outputDirectory.length() - editor.getFilePath().lastSegment().length());// ".jav" hat Länge 4 - if (tiResults.size() > 0) { + if (newResults.size() > 0) { for (SourceFile sf : compiler.sourceFiles.values()) { - HashMap bytecode = getBytecode(sf, tiResults, outputDirectory); + HashMap bytecode = getBytecode(sf, this.tiResults, outputDirectory); this.writeClassFile(outputDirectory, bytecode); } } @@ -154,7 +154,7 @@ public class Typinferenz { public HashMap getBytecode(SourceFile sf, Collection resultSets, String path) { HashMap classFiles = new HashMap<>(); - BytecodeGen bytecodeGen = new BytecodeGen(classFiles, new ArrayList<>(resultSets), sf, path); + BytecodeGen bytecodeGen = new BytecodeGen(classFiles, new ArrayList<>(this.tiResults), sf, path); bytecodeGen.visit(sf); return bytecodeGen.getClassFiles(); }