rigd-loxia / builder-generator

Yet another builder generator. Primary style of this generator will be fluent wither, although other styles will be supported in the future. There is support for builder chaining.
Apache License 2.0
2 stars 2 forks source link

java lang type with annotation results in uncompilable code #56

Open Zegveld opened 7 months ago

Zegveld commented 7 months ago

given the following situation:

public class MetaDataDto {
  @NotBlank
  private String projectNumber;
}

the following is generated:

public MetaDataDtoBuilder<PARENT> projectNumber(alidation.constraints.NotBlank java.lang.String projectNumber) {
  this.projectNumber = projectNumber;
  return this;
}

the method argument instead should have stripped java.lang. from the java.lang.String bit, instead of removing the first 10 characters.