Skip to content

Commit bd35feb

Browse files
committed
fix tests and add checks for constructor injection
1 parent f1c92ce commit bd35feb

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

headless-services/commons/commons-rewrite/src/main/java/org/springframework/ide/vscode/commons/rewrite/java/ConstructorInjectionRecipe.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, Ex
9393

9494
for (J j : classDecl.getBody().getStatements()) {
9595
if (j instanceof J.ClassDeclaration) {
96-
// updateCursor((J.ClassDeclaration) j);
9796
visitClassDeclaration((J.ClassDeclaration) j, ctx);
9897
}
9998
}
@@ -110,18 +109,6 @@ public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, Ex
110109
public J.VariableDeclarations visitVariableDeclarations(J.VariableDeclarations multiVariable,
111110
ExecutionContext ctx) {
112111

113-
// Cursor cursor = getCursor();
114-
// J.ClassDeclaration enclosingClass1 = null;
115-
// while (cursor != null) {
116-
// Object value = cursor.getValue();
117-
// if (value instanceof J.ClassDeclaration) {
118-
// enclosingClass1 = (J.ClassDeclaration) value;
119-
//// enclosingClass = (ClassDeclaration) super.visitClassDeclaration(enclosingClass, ctx);
120-
// break;
121-
// }
122-
// cursor = cursor.getParent();
123-
// }
124-
125112
Cursor blockCursor = getCursor().dropParentUntil(it -> it instanceof J.Block || it == Cursor.ROOT_VALUE);
126113
if (!(blockCursor.getValue() instanceof J.Block)) {
127114
return multiVariable;

0 commit comments

Comments
 (0)