Randgalt / record-builder

Record builder generator for Java records
Apache License 2.0
751 stars 53 forks source link

Using getterPrefix and/or booleanPrefix generates incompatible Wither #131

Closed Randgalt closed 1 year ago

Randgalt commented 2 years ago

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.