Skip to content

Commit

Permalink
Fix compilation on current NetBeans
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasblaesing committed Dec 8, 2022
1 parent e8724b9 commit b33b8e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ public Void visitVariable(VariableTree tree, Void p) {
int afterName = tl.offset();
TypeMirror type = info.getTrees().getTypeMirror(new TreePath(getCurrentPath(), tree.getType()));

this.preText.put(new int[] {afterName, afterName + 1}, " : " + info.getTypeUtilities().getTypeName(type));
this.preText.put(afterName, " : " + info.getTypeUtilities().getTypeName(type));
}

scan(tree.getInitializer(), p);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ public void testVar() throws Exception {
"[LOCAL_VARIABLE, UNUSED, DECLARATION], 2:12-2:14",
"[ : Iterator<String>], 2:14-2:15",
"[PARAMETER], 2:17-2:18",
"[ABSTRACT, PUBLIC, METHOD], 2:19-2:27]");
"[ABSTRACT, PUBLIC, METHOD], 2:19-2:27");
}

private void performTest(String fileName) throws Exception {
Expand Down

0 comments on commit b33b8e5

Please sign in to comment.