Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,15 @@ public synchronized void init(ProcessingEnvironment processingEnv) {
}
}

/**
* Always returns {@code false}, so this method intentionally never claims annotations (hence the
* {@code java:S3516} suppression). Claiming is all-or-nothing over the supported set and {@link
* SupportedAnnotationTypes} must stay {@code "*"} to discover user-defined template annotations;
* claiming would therefore hide every annotation in the round — including foreign ones like
* MapStruct's {@code @Mapper} — from later processors.
*/
@Override
@SuppressWarnings("java:S3516")
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
if (!supportedJdk) {
// Fail fast: we already emitted an error in init(); do not attempt any processing.
Expand Down Expand Up @@ -187,7 +195,7 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment

// Reset indentation level at the end of each processing round to prevent cascading errors
context.resetIndentation();
return true;
return false;
}

/** Generates all Jackson modules after the last processing round and reports the metrics. */
Expand Down
Loading