From 2aebaff46026dbfa447fd7454472e88c41dc8103 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Tue, 1 Dec 2009 23:23:35 +0100 Subject: Moved test resource files to a better matching location --- test/pretty/resource/after/Annotation.java | 9 +++++++++ test/pretty/resource/after/Cast.java | 6 ++++++ test/pretty/resource/after/ForEach.java | 9 +++++++++ test/pretty/resource/after/ForLoop.java | 11 +++++++++++ test/pretty/resource/after/WithComments.java | 5 +++++ 5 files changed, 40 insertions(+) create mode 100644 test/pretty/resource/after/Annotation.java create mode 100644 test/pretty/resource/after/Cast.java create mode 100644 test/pretty/resource/after/ForEach.java create mode 100644 test/pretty/resource/after/ForLoop.java create mode 100644 test/pretty/resource/after/WithComments.java (limited to 'test/pretty/resource/after') diff --git a/test/pretty/resource/after/Annotation.java b/test/pretty/resource/after/Annotation.java new file mode 100644 index 00000000..006af03e --- /dev/null +++ b/test/pretty/resource/after/Annotation.java @@ -0,0 +1,9 @@ +@SuppressWarnings("all") +class Annotation { + @Override + public String toString() { + return super.toString(); + } + public void method(@SuppressWarnings("unused") int x) { + } +} \ No newline at end of file diff --git a/test/pretty/resource/after/Cast.java b/test/pretty/resource/after/Cast.java new file mode 100644 index 00000000..95237b0f --- /dev/null +++ b/test/pretty/resource/after/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/pretty/resource/after/ForEach.java b/test/pretty/resource/after/ForEach.java new file mode 100644 index 00000000..c4d4a9dc --- /dev/null +++ b/test/pretty/resource/after/ForEach.java @@ -0,0 +1,9 @@ +import java.util.Arrays; +public class ForEach { + { + for (int i : Arrays.asList(1, 2, 3)) { + System.out.println(i); + // Do something + } + } +} diff --git a/test/pretty/resource/after/ForLoop.java b/test/pretty/resource/after/ForLoop.java new file mode 100644 index 00000000..615f6e8a --- /dev/null +++ b/test/pretty/resource/after/ForLoop.java @@ -0,0 +1,11 @@ +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/pretty/resource/after/WithComments.java b/test/pretty/resource/after/WithComments.java new file mode 100644 index 00000000..e4f078aa --- /dev/null +++ b/test/pretty/resource/after/WithComments.java @@ -0,0 +1,5 @@ +// Cool Comments +public class WithComments { + // Also inside the body +// On start of line +} \ No newline at end of file -- cgit