mkarneim / pojobuilder

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

Constructor receiving parent type as argument creates error on JavaDoc #146

Closed HugoMRAmaro closed 6 years ago

HugoMRAmaro commented 6 years ago

Hello,

I have a class with a constructor which receives a parent type object, so that I can copy those values to my current instance. E.g:

public class DatabaseEvent extends BaseEvent {

public DatabaseEvent(BaseEvent baseEvent) {
    super(baseEvent);
}

.... }

The BaseEvent parent constructor is a copy constructor (copies all the object values passed to its instance).

The Builder generated contains a method withBaseEvent(BaseEvent value) but the comments have a link {@link DatabaseEvent#baseEvent} which is not correct because DatabaseEvent doesn't contain any baseEvent property (and doesn't need) /**

Can it be corrected? I also tried to find a way to exclude the javadoc generation for this method but I was not able to do it.

Thank you!