Skip to content

Commit

Permalink
Ensure there is no change for a nested Setter
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Dec 15, 2024
1 parent 6fd95b7 commit 22810ec
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,4 +464,23 @@ public void unrelated2() {
)
);
}

@Test
void noChangeNestedClassSetter() {
rewriteRun(// language=java
java(
"""
class Outer {
int foo = 9;
class Inner {
public void setFoo(int foo) {
Outer.this.foo = foo;
}
}
}
"""
)
);
}
}

0 comments on commit 22810ec

Please sign in to comment.