Files
openide/plugins/lombok/testData/highlightingIncompleteMode/LombokBasics.java
Mikhail Pyltsin 153827e5e4 IJ-CR-134196 [java-highlighting] IDEA-352727 Incomplete model with lombok
- add a more accurate message for non-initialized fields

GitOrigin-RevId: 1c5fc12a0f4dd70c8899a807dc03925680c68ab9
2024-05-23 14:11:43 +00:00

32 lines
1.7 KiB
Java

import <info descr="Not resolved until the project is fully loaded">lombok</info>.*<EOLError descr="';' expected"></EOLError>
public final class LombokBasics {
public static void main(String[] args) {
UserDao userDao = UserDao.<info descr="Not resolved until the project is fully loaded">builder</info>()
.<info descr="Not resolved until the project is fully loaded">info</info>("1")
.<info descr="Not resolved until the project is fully loaded">build</info>();
String name = userDao.<info descr="Not resolved until the project is fully loaded">name</info>();
UserChain userChain = new UserChain();
String name1 = userChain.<info descr="Not resolved until the project is fully loaded">getName</info>();
}
}
@<info descr="Not resolved until the project is fully loaded">Getter</info>
@<info descr="Not resolved until the project is fully loaded">SuperBuilder</info>
class UserDao extends UserId {
<info descr="Not initialized until the project is fully loaded">private final String name;</info>
<info descr="Not initialized until the project is fully loaded">private final String surname;</info>
<info descr="Not initialized until the project is fully loaded">private final String email;</info>
}
@<info descr="Not resolved until the project is fully loaded">SuperBuilder</info>
abstract class UserId {
<info descr="Not initialized until the project is fully loaded">private final long id;</info>
<info descr="Not initialized until the project is fully loaded">private final String info;</info>
}
class UserChain {
@<info descr="Not resolved until the project is fully loaded">Getter</info>
@<info descr="Not resolved until the project is fully loaded">Setter</info>
private String name;
}