diff options
Diffstat (limited to 'test/transform/resource/after-delombok')
5 files changed, 39 insertions, 11 deletions
diff --git a/test/transform/resource/after-delombok/GetterAlreadyExists.java b/test/transform/resource/after-delombok/GetterAlreadyExists.java index 6a5377ba..d0a01c88 100644 --- a/test/transform/resource/after-delombok/GetterAlreadyExists.java +++ b/test/transform/resource/after-delombok/GetterAlreadyExists.java @@ -3,6 +3,10 @@ class Getter1 { boolean hasFoo() { return true; } + @java.lang.SuppressWarnings("all") + public boolean isFoo() { + return this.foo; + } } class Getter2 { boolean foo; @@ -73,6 +77,10 @@ class Getter10 { static boolean hasFoo() { return false; } + @java.lang.SuppressWarnings("all") + public boolean isFoo() { + return this.foo; + } } class Getter11 { boolean foo; diff --git a/test/transform/resource/after-delombok/GetterBoolean.java b/test/transform/resource/after-delombok/GetterBoolean.java index a727e49b..42b4319d 100644 --- a/test/transform/resource/after-delombok/GetterBoolean.java +++ b/test/transform/resource/after-delombok/GetterBoolean.java @@ -11,7 +11,7 @@ class Getter { return this.isBar; } @java.lang.SuppressWarnings("all") - public boolean hasBaz() { + public boolean isHasBaz() { return this.hasBaz; } } @@ -20,4 +20,14 @@ class MoreGetter { boolean hasFoo() { return true; } + @java.lang.SuppressWarnings("all") + public boolean isFoo() { + return this.foo; + } +} +class YetMoreGetter { + boolean foo; + boolean getFoo() { + return true; + } }
\ No newline at end of file diff --git a/test/transform/resource/after-delombok/SetterAccessLevel.java b/test/transform/resource/after-delombok/SetterAccessLevel.java index dce4cc2f..45df2b35 100644 --- a/test/transform/resource/after-delombok/SetterAccessLevel.java +++ b/test/transform/resource/after-delombok/SetterAccessLevel.java @@ -6,19 +6,19 @@ class SetterAccessLevel { boolean isPublic; boolean value; @java.lang.SuppressWarnings("all") - private void setIsPrivate(final boolean isPrivate) { + private void setPrivate(final boolean isPrivate) { this.isPrivate = isPrivate; } @java.lang.SuppressWarnings("all") - void setIsPackage(final boolean isPackage) { + void setPackage(final boolean isPackage) { this.isPackage = isPackage; } @java.lang.SuppressWarnings("all") - protected void setIsProtected(final boolean isProtected) { + protected void setProtected(final boolean isProtected) { this.isProtected = isProtected; } @java.lang.SuppressWarnings("all") - public void setIsPublic(final boolean isPublic) { + public void setPublic(final boolean isPublic) { this.isPublic = isPublic; } @java.lang.SuppressWarnings("all") diff --git a/test/transform/resource/after-delombok/SetterAlreadyExists.java b/test/transform/resource/after-delombok/SetterAlreadyExists.java index e4992b29..abc6d48f 100644 --- a/test/transform/resource/after-delombok/SetterAlreadyExists.java +++ b/test/transform/resource/after-delombok/SetterAlreadyExists.java @@ -33,3 +33,13 @@ class Setter7 { static void setFoo() { } } +class Setter8 { + boolean isFoo; + void setIsFoo() { + } +} +class Setter9 { + boolean isFoo; + void setFoo() { + } +}
\ No newline at end of file diff --git a/test/transform/resource/after-delombok/SetterOnClass.java b/test/transform/resource/after-delombok/SetterOnClass.java index 05528ff8..151bc179 100644 --- a/test/transform/resource/after-delombok/SetterOnClass.java +++ b/test/transform/resource/after-delombok/SetterOnClass.java @@ -2,7 +2,7 @@ class SetterOnClass1 { boolean isNone; boolean isPublic; @java.lang.SuppressWarnings("all") - public void setIsPublic(final boolean isPublic) { + public void setPublic(final boolean isPublic) { this.isPublic = isPublic; } } @@ -11,11 +11,11 @@ class SetterOnClass2 { boolean isProtected; boolean isPackage; @java.lang.SuppressWarnings("all") - protected void setIsProtected(final boolean isProtected) { + protected void setProtected(final boolean isProtected) { this.isProtected = isProtected; } @java.lang.SuppressWarnings("all") - void setIsPackage(final boolean isPackage) { + void setPackage(final boolean isPackage) { this.isPackage = isPackage; } } @@ -23,7 +23,7 @@ class SetterOnClass3 { boolean isNone; boolean isPackage; @java.lang.SuppressWarnings("all") - void setIsPackage(final boolean isPackage) { + void setPackage(final boolean isPackage) { this.isPackage = isPackage; } } @@ -31,7 +31,7 @@ class SetterOnClass4 { boolean isNone; boolean isPrivate; @java.lang.SuppressWarnings("all") - private void setIsPrivate(final boolean isPrivate) { + private void setPrivate(final boolean isPrivate) { this.isPrivate = isPrivate; } } @@ -39,7 +39,7 @@ class SetterOnClass5 { boolean isNone; boolean isPublic; @java.lang.SuppressWarnings("all") - public void setIsPublic(final boolean isPublic) { + public void setPublic(final boolean isPublic) { this.isPublic = isPublic; } } |