Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RequiredArgsConstructor
- class MyClass {
- private final int x;
- @Getter(lazy = true)
- private final int sqrt = 15;
- public static void main(String[] args) {
- final MyClass myClass2 = new MyClass(2);
- System.out.println(myClass2.sqrt); // null
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement