我正在使用intellij和Lombok,并且已将注释处理器设置为启用。
IntelliJ IDEA 2020.2 (Community Edition)
Build #IC-202.6397.94, built on July 27, 2020
Runtime version: 11.0.7+10-b944.20 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux XXXX
GC: ParNew, ConcurrentMarkSweep
Memory: XXXXM
Cores: XX
Non-Bundled Plugins: color.scheme.Gruvbox, Lombook Plugin, org.intellij.scala
Current Desktop: KDE
使用Lobmok:0.30-EAP
当我像这样创建一个类时:
@Builder
@Getter
public class Stub {
private final int f1;
private final long f2;
}
或者如果我向现有的Intellij类添加字段,则说明:Variable 'f1' might not have been initialized
。
如果我重新启动Intellij,错误就会消失。