diff options
Diffstat (limited to 'test/delombok/resource/after')
4 files changed, 43 insertions, 5 deletions
diff --git a/test/delombok/resource/after/CleanupName.java b/test/delombok/resource/after/CleanupName.java index 26997372..cd29eb68 100644 --- a/test/delombok/resource/after/CleanupName.java +++ b/test/delombok/resource/after/CleanupName.java @@ -1,5 +1,5 @@ -class Cleanup { - void test() throws Exception { +class CleanupName { + void test() { Object o = "Hello World!"; try { System.out.println(o); @@ -7,4 +7,12 @@ class Cleanup { o.toString(); } } + void test2() { + Object o = "Hello World too!"; + try { + System.out.println(o); + } finally { + o.toString(); + } + } } diff --git a/test/delombok/resource/after/GetterAccessLevel.java b/test/delombok/resource/after/GetterAccessLevel.java index eec84e85..e117b72a 100644 --- a/test/delombok/resource/after/GetterAccessLevel.java +++ b/test/delombok/resource/after/GetterAccessLevel.java @@ -1,9 +1,15 @@ -class Getter { +class GetterAccessLevel { boolean isNone; boolean isPrivate; boolean isPackage; boolean isProtected; boolean isPublic; + String noneString; + String privateString; + String packageString; + String protectedString; + String publicString; + String value; private boolean isPrivate() { return isPrivate; } @@ -16,4 +22,19 @@ class Getter { public boolean isPublic() { return isPublic; } -} + private String getPrivateString() { + return privateString; + } + String getPackageString() { + return packageString; + } + protected String getProtectedString() { + return protectedString; + } + public String getPublicString() { + return publicString; + } + public String getValue() { + return value; + } +}
\ No newline at end of file diff --git a/test/delombok/resource/after/SetterAccessLevel.java b/test/delombok/resource/after/SetterAccessLevel.java index 95179bac..d4e7ac23 100644 --- a/test/delombok/resource/after/SetterAccessLevel.java +++ b/test/delombok/resource/after/SetterAccessLevel.java @@ -1,9 +1,10 @@ -class Setter { +class SetterAccessLevel { boolean isNone; boolean isPrivate; boolean isPackage; boolean isProtected; boolean isPublic; + boolean value; private void setIsPrivate(final boolean isPrivate) { this.isPrivate = isPrivate; } @@ -16,4 +17,7 @@ class Setter { public void setIsPublic(final boolean isPublic) { this.isPublic = isPublic; } + public void setValue(final boolean value) { + this.value = value; + } } diff --git a/test/delombok/resource/after/SynchronizedName.java b/test/delombok/resource/after/SynchronizedName.java index a3e64796..066e3bdf 100644 --- a/test/delombok/resource/after/SynchronizedName.java +++ b/test/delombok/resource/after/SynchronizedName.java @@ -17,4 +17,9 @@ class SynchronizedName { System.out.println("four"); } } + void test5() { + synchronized (read) { + System.out.println("five"); + } + } } |