Ambiguous method call using Project Lombok

Adrian Elder :

I have the following code:

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();
    }
}

When trying to reference isMatch(), I get:

Ambiguous method call. Both

isMatch () in Response and
isMatch () in Response match

enter image description here

I have also tried removing the @Builder annotation, but this doesn't help.

Adrian Elder :

It looks like I had the Hrisey Intellij plugin installed in addition to the Project Lombok plugin. I must have accidentally installed this when I was looking for the Project Lombok plugin.

After disabling this plugin, the issue was no longer present.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=462459&siteId=1