aboutsummaryrefslogtreecommitdiff
path: root/test/pretty
diff options
context:
space:
mode:
Diffstat (limited to 'test/pretty')
-rw-r--r--test/pretty/resource/after/DefaultMethod.java8
-rw-r--r--test/pretty/resource/before/DefaultMethod.java11
2 files changed, 19 insertions, 0 deletions
diff --git a/test/pretty/resource/after/DefaultMethod.java b/test/pretty/resource/after/DefaultMethod.java
new file mode 100644
index 00000000..864ba60f
--- /dev/null
+++ b/test/pretty/resource/after/DefaultMethod.java
@@ -0,0 +1,8 @@
+interface DefaultMethod {
+ int size();
+ default boolean isEmpty() {
+ return size() == 0;
+ }
+ default strictfp void run() {
+ }
+} \ No newline at end of file
diff --git a/test/pretty/resource/before/DefaultMethod.java b/test/pretty/resource/before/DefaultMethod.java
new file mode 100644
index 00000000..e0358c7a
--- /dev/null
+++ b/test/pretty/resource/before/DefaultMethod.java
@@ -0,0 +1,11 @@
+// version 8:
+interface DefaultMethod {
+ int size();
+
+ default boolean isEmpty() {
+ return size() == 0;
+ }
+
+ default strictfp void run() {
+ }
+} \ No newline at end of file