mirror of
https://github.com/tiennm99/lombok.git
synced 2026-08-01 06:21:53 +00:00
Still need to investigate how to improve autocomplete presence of helper methods.
31 lines
580 B
Java
31 lines
580 B
Java
import lombok.experimental.Helper;
|
|
class HelperTest {
|
|
{
|
|
final int z = 5;
|
|
if (Boolean.TRUE)
|
|
{
|
|
@Helper class H1 {
|
|
H1() {
|
|
super();
|
|
}
|
|
void foo(int x) {
|
|
System.out.println(("Hello, " + (x + z)));
|
|
}
|
|
}
|
|
final H1 $H1 = new H1();
|
|
$H1.foo(10);
|
|
@Helper class H2 {
|
|
H2() {
|
|
super();
|
|
}
|
|
void bar() {
|
|
$H1.foo(12);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
HelperTest() {
|
|
super();
|
|
}
|
|
}
|