diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2016-03-07 15:21:01 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2016-03-07 15:21:01 +0100 |
commit | 3378cbe65553e685afaad816c260426438aa434b (patch) | |
tree | 8ae03f26c05d6a23bde7ef546f8f04bf936c301c /test/transform/resource/after-delombok | |
parent | 07b8af4cc5c844c9e085e2c4662df1d08221e710 (diff) | |
download | lombok-3378cbe65553e685afaad816c260426438aa434b.tar.gz lombok-3378cbe65553e685afaad816c260426438aa434b.tar.bz2 lombok-3378cbe65553e685afaad816c260426438aa434b.zip |
@Helper is now legal in just about every place method local classes are legal. Also now no longer messes up syntax highlighting in eclipse.
Still need to investigate how to improve autocomplete presence of helper methods.
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/Helper.java | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/test/transform/resource/after-delombok/Helper.java b/test/transform/resource/after-delombok/Helper.java index 52f50dd2..64ecb492 100644 --- a/test/transform/resource/after-delombok/Helper.java +++ b/test/transform/resource/after-delombok/Helper.java @@ -1,15 +1,18 @@ class HelperTest { - void test() { - class H1 { - void foo() { - System.out.println("Hello"); + { + final int z = 5; + if (Boolean.TRUE) { + class H1 { + void foo(int x) { + System.out.println("Hello, " + (x + z)); + } } - } - final H1 $H1 = new H1(); - $H1.foo(); - class H2 { - void bar() { - $H1.foo(); + final H1 $H1 = new H1(); + $H1.foo(10); + class H2 { + void bar() { + $H1.foo(12); + } } } } |