IJ-CR-134196 [java-highlighting] IDEA-352727 Incomplete model with lombok

- add a more accurate message for non-initialized fields

GitOrigin-RevId: 1c5fc12a0f4dd70c8899a807dc03925680c68ab9
This commit is contained in:
Mikhail Pyltsin
2024-05-23 12:26:27 +02:00
committed by intellij-monorepo-bot
parent cc046c56a2
commit 153827e5e4
5 changed files with 23 additions and 13 deletions

View File

@@ -14,15 +14,15 @@ public final class LombokBasics {
@<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 resolved until the project is fully loaded">private final String name;</info>
<info descr="Not resolved until the project is fully loaded">private final String surname;</info>
<info descr="Not resolved until the project is fully loaded">private final String email;</info>
<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 resolved until the project is fully loaded">private final long id;</info>
<info descr="Not resolved until the project is fully loaded">private final String info;</info>
<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 {

View File

@@ -16,15 +16,15 @@ public final class LombokBasicsWithExplicitImport {
@<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 resolved until the project is fully loaded">private final String name;</info>
<info descr="Not resolved until the project is fully loaded">private final String surname;</info>
<info descr="Not resolved until the project is fully loaded">private final String email;</info>
<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 resolved until the project is fully loaded">private final long id;</info>
<info descr="Not resolved until the project is fully loaded">private final String info;</info>
<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 {