diff --git a/src/test/java/org/openrewrite/java/migrate/lombok/UseLombokSetterTest.java b/src/test/java/org/openrewrite/java/migrate/lombok/UseLombokSetterTest.java index 33e02601f..bab9ddf25 100644 --- a/src/test/java/org/openrewrite/java/migrate/lombok/UseLombokSetterTest.java +++ b/src/test/java/org/openrewrite/java/migrate/lombok/UseLombokSetterTest.java @@ -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; + } + } + } + """ + ) + ); + } }