Repository navigation
style: format the Java code - #109
Merged
Merged
Conversation
Put class descriptions before their @author tag, so that the formatter doesn't fold them into the tag; write the lists (executor command rules, error handler, order of builder calls) as HTML lists; add a missing sentence break; qualify the {@link} that only an unused import resolved. Refs #85 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Format all hand-written Java code (main, test and integration test sources, except the generated files listed in src/main/java/.openapi-generator/FILES) with google-java-format 1.7 in AOSP style (4-space indentation, as before), through spotless-maven-plugin 2.30.0, and remove unused imports. Formatting only: the bytecode of all 127 compiled classes is identical before and after (javap -c -p -constants). Refs #85 Co-Authored-By: Claude Opus 5.5 <[email protected]>
uniqueg
marked this pull request as ready for review
November 7, 2026 16:30
|
Sorry @uniqueg, your pull request is larger than the review limit of 500,000 diff characters |
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (90.18%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## dev #109 +/- ##
==========================================
+ Coverage 57.73% 62.16% +4.42%
==========================================
Files 64 64
Lines 2191 2471 +280
Branches 245 257 +12
==========================================
+ Hits 1265 1536 +271
- Misses 786 794 +8
- Partials 140 141 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Nov 7, 2026
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR reformats the hand-written Java code. It is the first of three PRs for #85:
.git-blame-ignore-revs. Please squash-merge this PR, so that there is a single commit to add.pom.xml(Spotless, Checkstyle set up to match the formatter), with the CI job. The third PR resolves the issue.Commits
docs: prepare the Javadoc for the formatterchanges comments only:@authortag. Otherwise the formatter folds them into the tag.ExecutorCommandWrapper,CustomErrorHandler,SingleTaskStrategyandTaskListStrategyare written as HTML lists, and a missing sentence break inTesKubernetesConverteris added.{@link}inGroupNamesSecurityExtractoris qualified. Before, only an unused import resolved it.style: format the Java code:src/main/java,src/test/javaandsrc/integration-test/java.src/main/java/.openapi-generator/FILES:tes/api/ApiUtil,TasksApi,ServiceInfoApi,tes/model/Service*andTes*.tes/apiandtes/model/TaskVieware formatted. The two controllers are kept out of code generation by.swagger-codegen-ignore.Not changed:
.javasources changes.Part of #85.
Verification
Formatting only:
./mvnw clean test-compileondevand on this branch, then dumped every class intarget/classesandtarget/test-classeswithjavap -c -p -constants. That covers all 127 classes: main, unit test and integration test.final static→static finaland the removed imports../mvnw verifyon Java 8 (Temurin 8.0.504) passes: 7314 unit tests and 53 integration tests.To reproduce: add the Spotless configuration of PR 3 to
pom.xmland run./mvnw spotless:apply.Review: two rounds with the adversarial and quality reviewers.
{@link}, now fixed.@author(CustomErrorHandler,User) and numbered lists joined into paragraphs. All are fixed in the first commit. No description follows an@authortag any more.CI: all jobs pass and the gate
CI passedis green.codecov/patchfails, as expected for a reformat. It treats every reformatted line as changed, including lines that no test covers. The check isn't required;codecov/projectpasses.Declined review findings
//comments are wrapped into short fragments. The meaning is unchanged; left as is.LineLengthandAvoidStarImport).Open questions
None.
🤖 Generated with Claude Code