diff options
author | Roel Spilker <r.spilker@gmail.com> | 2014-05-01 22:13:10 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2014-05-01 22:13:10 +0200 |
commit | e890428077e48f8dcf14928267d506a0c1d36abf (patch) | |
tree | fb81ca674a3bb565ae7cc9820666d087b935418d /test | |
parent | c7bfba873eb62a73668875cb1e9d94fb322bec1c (diff) | |
download | lombok-e890428077e48f8dcf14928267d506a0c1d36abf.tar.gz lombok-e890428077e48f8dcf14928267d506a0c1d36abf.tar.bz2 lombok-e890428077e48f8dcf14928267d506a0c1d36abf.zip |
[java8] Support in delombok for default methods in interfaces
Diffstat (limited to 'test')
-rw-r--r-- | test/pretty/resource/after/DefaultMethod.java | 8 | ||||
-rw-r--r-- | test/pretty/resource/before/DefaultMethod.java | 11 |
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 |