diff options
Diffstat (limited to 'test/delombok/resource/before')
-rw-r--r-- | test/delombok/resource/before/Cast.java | 6 | ||||
-rw-r--r-- | test/delombok/resource/before/ForLoop.java | 12 | ||||
-rw-r--r-- | test/delombok/resource/before/WithComments.java | 4 |
3 files changed, 22 insertions, 0 deletions
diff --git a/test/delombok/resource/before/Cast.java b/test/delombok/resource/before/Cast.java new file mode 100644 index 00000000..95237b0f --- /dev/null +++ b/test/delombok/resource/before/Cast.java @@ -0,0 +1,6 @@ +import java.util.*; +public class Cast { + public void test(List<?> list) { + RandomAccess r = (/*before*/ RandomAccess /*after*/)list; + } +}
\ No newline at end of file diff --git a/test/delombok/resource/before/ForLoop.java b/test/delombok/resource/before/ForLoop.java new file mode 100644 index 00000000..2bed7f9b --- /dev/null +++ b/test/delombok/resource/before/ForLoop.java @@ -0,0 +1,12 @@ +public class ForLoop { + + public static void main(String[] args) { + // before loop + for (int i = 0; i < 10; i++) { + // start of block + System.out.println(i); + // end of block + } + // after loop + } +} diff --git a/test/delombok/resource/before/WithComments.java b/test/delombok/resource/before/WithComments.java new file mode 100644 index 00000000..22d044b3 --- /dev/null +++ b/test/delombok/resource/before/WithComments.java @@ -0,0 +1,4 @@ +// Cool Comments +public class WithComments { + // Also inside the body +} |