From 3378cbe65553e685afaad816c260426438aa434b Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 7 Mar 2016 15:21:01 +0100 Subject: @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. --- test/transform/resource/after-delombok/Helper.java | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'test/transform/resource/after-delombok/Helper.java') 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); + } } } } -- cgit