Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ambiguous method call using Project Lombok

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.

like image 799
Adrian Elder Avatar asked May 03 '18 19:05

Adrian Elder


1 Answers

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.

like image 86
Adrian Elder Avatar answered Sep 24 '22 13:09

Adrian Elder