hey guys, for some reason, I need to define a annotation with the retention of source, and you can check the source code I have uploaded, these file is in the annotation-processor module
in another module, I use the Builder annotation in this way
@Builder
public class Article {
public int id;
@Nonnull
public String title;
@Nonnull
public String markdownContent;
@Nonnull
public String htmlContent;
@Nonnull
public String summary;
@Nonnull
public java.sql.Timestamp publishDate;
@Nonnull
public java.sql.Timestamp editTime;
private Article() {
this.id = -1;
this.title = null;
this.markdownContent = null;
this.htmlContent = null;
this.summary = null;
this.publishDate = null;
this.editTime = null;
}
}
when build this module,the error occurs
4 actionable tasks: 3 executed, 1 up-to-date
错误: [IOException] generate code failed: `Attempt to recreate a file for type com.steiner.source_retention.model.Article`
1 个错误
so this is the error, I don't know how to fix it, and I don't know how can I process the generate content(file content) ,
how does the @Builder in lombok process, may I ask ?