Skip to content

Commit ac2e19a

Browse files
committed
Generated JsonAdapter classes as @Generated and final
1 parent 00e5e50 commit ac2e19a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jsonb-generator/src/main/java/io/avaje/jsonb/generator/SimpleAdapterWriter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ private void writeClassEnd() {
6161
}
6262

6363
private void writeClassStart() {
64-
writer.append("public class %sJsonAdapter extends JsonAdapter<%s> ", adapterShortName, beanReader.shortName());
64+
writer.append("@Generated").eol();
65+
writer.append("public final class %sJsonAdapter extends JsonAdapter<%s> ", adapterShortName, beanReader.shortName());
6566
if (!beanReader.hasSubtypes()) {
6667
writer.append("implements ViewBuilderAware ");
6768
}

0 commit comments

Comments
 (0)