Adr*_*der 7 java intellij-idea lombok intellij-lombok-plugin
我有以下代码:
import lombok.Builder;
import lombok.Getter;
@Getter
@Builder
public class NameParserResponse {
private boolean match;
}
public class Main {
public static void main(String[] args) {
NameParserResponse nameParserResponse = NameParserResponse.builder().build();
nameParserResponse.isMatch();
}
}
Run Code Online (Sandbox Code Playgroud)
在尝试引用isMatch()时,我得到:
Ambiguous method call. Both
isMatch () in Response and
isMatch () in Response match
Run Code Online (Sandbox Code Playgroud)
我也尝试删除@Builder
注释,但这没有帮助.
看起来Hrisey
除了该Project Lombok
插件之外我还安装了 Intellij 插件。我一定是在寻找插件时不小心安装了这个Project Lombok
。
禁用此插件后,该问题不再存在。
归档时间: |
|
查看次数: |
521 次 |
最近记录: |