checkstyle icon indicating copy to clipboard operation
checkstyle copied to clipboard

Issue #19806: quote record component name in JavadocType missing tag …

Open surajgojanur opened this issue 5 months ago • 0 comments

Fixes #19806

JavadocType produced a confusing violation for a missing record-component @param tag: Type Javadoc comment is missing @param value tag. — the bare component name (value) ran into the surrounding words with no delimiter.

This wraps the record-component name in single quotes, so the message reads Type Javadoc comment is missing @param 'value' tag.. The other MSG_MISSING_TAG cases are intentionally left untouched, since they are already delimited (@param <T>) or have no value (@author).

Only the runtime argument changes; the message key/pattern (type.missingTag={0}) and all locale files are unchanged, so no translations are affected. Updated the affected test assertions and inline violation comments.

./mvnw clean verify passes locally.

surajgojanur avatar Jun 15 '26 05:06 surajgojanur