Randgalt / record-builder

Record builder generator for Java records

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using getterPrefix and/or booleanPrefix generates incompatible Wither

Randgalt opened this issue · comments

E.g.

@RecordBuilder
@RecordBuilder.Options(
    setterPrefix = "set", getterPrefix = "get", booleanPrefix = "is", beanClassName = "Bean")
public record CustomMethodNames<K, V>(
    Map<K, V> kvMap,
    int theValue,
    List<Integer> theList,
    boolean theBoolean) implements Bean, CustomMethodNamesBuilder.With {
}

Generates With interface with incorrect method names. They shouldn't have the prefix.