mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 12:22:31 +00:00
[fixes #3370] Support Helper in method
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import lombok.experimental.Helper;
|
||||
|
||||
public class HelperInInitializationBlock {
|
||||
{
|
||||
final int z = 5;
|
||||
if (Boolean.TRUE) {
|
||||
@Helper class H1 {
|
||||
void foo(int x) {
|
||||
System.out.println("Hello, " + (x + z));
|
||||
}
|
||||
}
|
||||
|
||||
foo(10);
|
||||
|
||||
@Helper class H2 {
|
||||
void bar() {
|
||||
foo(12);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user