使用Project Lombok调用不明确的方法

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注释,但这没有帮助.

Adr*_*der 4

看起来Hrisey除了该Project Lombok插件之外我还安装了 Intellij 插件。我一定是在寻找插件时不小心安装了这个Project Lombok

禁用此插件后,该问题不再存在。