mkarneim / pojobuilder

A Java Code Generator for Pojo Builders
Other
334 stars 44 forks source link

Redundant cast in generated code #177

Open rpost opened 9 months ago

rpost commented 9 months ago

Generated builders contain constructor which in turn contains cast which javac (sometimes?) treats as redundant and complains about that with warning.

Sample from my project:

DebitMandateBuilder.java:27: warning: [cast] redundant cast to DebitMandateBuilder
    self = (DebitMandateBuilder)this;
           ^
error: warnings found and -Werror specified
1 error
1 warning

We have strict warning policy (javac -Werror flag) and this means compilation fails.

Please resolve this warning.

jahlbornG commented 8 months ago

hey, was hoping to use this library, but we ran into this error as well. any info on when this might be fixed?