mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 14:21:47 +00:00
[fixes #3370] Support Helper in method
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import lombok.experimental.Helper;
|
||||
|
||||
public class HelperInMethod {
|
||||
int someMethod(int arg1) {
|
||||
int localVar = 5;
|
||||
|
||||
@Helper
|
||||
class Helpers {
|
||||
int helperMethod(int arg) {
|
||||
return arg + localVar;
|
||||
}
|
||||
}
|
||||
|
||||
return helperMethod(10);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user