Skip to content

Reduce AbstractCompilerMojo.java length below Checkstyle limit - #1118

Closed
elharo wants to merge 3 commits into
maven-compiler-plugin-3.xfrom
MCOMPILER-598-reduce-file-length
Closed

Reduce AbstractCompilerMojo.java length below Checkstyle limit#1118
elharo wants to merge 3 commits into
maven-compiler-plugin-3.xfrom
MCOMPILER-598-reduce-file-length

Conversation

@elharo

@elharo elharo commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Problem

Since #1091 (MCOMPILER-578) the file src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java grew to 2063 lines, exceeding the FileLength check (max 2000). The default Checkstyle ruleset pulls in FileLength with no overridable maximum, so a plain mvn checkstyle:check fails on the 3.x branch.

Change

Trims AbstractCompilerMojo.java from 2063 to 1990 lines with no behavioral change:

  • collapse short @Parameter / @Inject field Javadocs to one line
  • drop @param/@return tags that merely repeat argument names on private methods
  • condense background banner comments and low-value one-line comments
  • tighten verbose method Javadocs

Verification

  • mvn checkstyle:check -> 0 violations
  • mvn install -DskipTests -> BUILD SUCCESS (compiles, javadoc generation passes)

…PILER-598)

FileLength check (max 2000) is triggered since #1091 grew the file to 2063
lines. Trim doc comments, redundant parameter tags and low-value comments
down to 1990 lines without any behavioral change.
@elharo elharo added java Pull requests that update Java code maintenance 3.x labels Aug 28, 2026
@elharo elharo closed this Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x java Pull requests that update Java code maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant