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
I have also tried removing the @Builder
annotation, but this doesn't help.