diff options
author | peichhorn <peichhor@web.de> | 2011-07-14 10:38:16 +0200 |
---|---|---|
committer | peichhorn <peichhor@web.de> | 2011-07-14 10:42:42 +0200 |
commit | 68b079d3129c8201fcffb898bf6155efdc393d0a (patch) | |
tree | 03f656204f303ab4aa0d13733de2bfc7a8a174ba /test/pretty/resource/after/Interfaces.java | |
parent | 4b9a8142d0638d0098ec0e76cc791b65592f66c0 (diff) | |
download | lombok-68b079d3129c8201fcffb898bf6155efdc393d0a.tar.gz lombok-68b079d3129c8201fcffb898bf6155efdc393d0a.tar.bz2 lombok-68b079d3129c8201fcffb898bf6155efdc393d0a.zip |
fixed Issue 233:
Javac parser handles ";" (empty statements) as empty blocks with an invalid position. Thats why delomok replaces ";" with "{}". This gets an issue when you use this in an interface, since interfaces are not allowed to have initializer blocks.
Diffstat (limited to 'test/pretty/resource/after/Interfaces.java')
-rw-r--r-- | test/pretty/resource/after/Interfaces.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pretty/resource/after/Interfaces.java b/test/pretty/resource/after/Interfaces.java index c5008f2b..b620e038 100644 --- a/test/pretty/resource/after/Interfaces.java +++ b/test/pretty/resource/after/Interfaces.java @@ -1,5 +1,13 @@ @SuppressWarnings("all") interface Interfaces { + enum Ranks { + CLUBS, + HEARTS, + DIAMONDS, + SPADES; + } + ; + ; int x = 10; void y(); int a = 20; |