Reformat Java sources with Palantir - #12422
Draft
bric3 wants to merge 1 commit into
Draft
Conversation
Contributor
|
🎯 Code Coverage (details) 🔗 Commit SHA: 15f2324 | Docs | View more details | Give us feedback! |
Debugger benchmarksParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 9 metrics, 6 unstable metrics. See unchanged results
Request duration reports for reportsgantt
title reports - request duration [CI 0.99] : candidate=None, baseline=None
dateFormat X
axisFormat %s
section baseline
noprobe (381.245 µs) : 336, 427
. : milestone, 381,
basic (340.776 µs) : 331, 350
. : milestone, 341,
loop (8.116 ms) : 8052, 8180
. : milestone, 8116,
section candidate
noprobe (376.004 µs) : 320, 432
. : milestone, 376,
basic (340.42 µs) : 334, 347
. : milestone, 340,
loop (8.132 ms) : 8058, 8206
. : milestone, 8132,
|
Contributor
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
bric3
force-pushed
the
bdu/reformat-with-palantir-java-format
branch
from
September 7, 2026 13:02
7d7768e to
04b57a8
Compare
bric3
force-pushed
the
bdu/reformat-with-palantir-java-format
branch
from
September 7, 2026 13:20
04b57a8 to
15f2324
Compare
Kafka / consumer-benchmarkParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics. See unchanged results
|
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.
What Does This Do
Reformats 1,855 Java files with Palantir Java Format's
GOOGLEstyle. No non-Java files are changed.Representative Formatting Changes
Compact Lambda Pipelines
PluginApplication.javaVertically Aligned Fluent Calls
AdviceGeneratorImpl.javaNested Callbacks Without an Indentation Pyramid
CoreTracer.javaNested Lambda Pipelines Without Stair-Step Indentation
AssertBuilder.javareturn type.getAnnotationByName("AutoService") - .<Set<Class<?>>>map( - annotation -> - annotation.asNormalAnnotationExpr().getPairs().stream() - .filter(pair -> pair.getNameAsString().equals("value")) - .flatMap( - pair -> - pair.getValue().asArrayInitializerExpr().getValues().stream() - .map( - value -> - value - .asClassExpr() - .getType() - .resolve() - .asReferenceType() - .getTypeDeclaration() - .get() - .getQualifiedName())) - .map(AssertBuilder::loadClass) - .collect(Collectors.toSet())) + .<Set<Class<?>>>map(annotation -> annotation.asNormalAnnotationExpr().getPairs().stream() + .filter(pair -> pair.getNameAsString().equals("value")) + .flatMap(pair -> pair.getValue().asArrayInitializerExpr().getValues().stream() + .map(value -> value + .asClassExpr() + .getType() + .resolve() + .asReferenceType() + .getTypeDeclaration() + .get() + .getQualifiedName())) + .map(AssertBuilder::loadClass) + .collect(Collectors.toSet())) .orElse(Collections.emptySet());Switch Blocks Attached to Their Labels
JsonToExpressionConverter.javaMotivation
Keep the mechanical formatting changes separate from the formatter configuration in #12421. The explicit
GOOGLEstyle preserves the repository's two-space indentation and 100-character line width while evaluating Palantir's lambda and fluent-chain layout.Additional Notes
This PR is stacked on #12421. A stale local Spotless build-cache entry initially pointed one smoke-test project at a sibling relative path; cache-free formatting and the root,
buildSrc, and published-dependencies Spotless checks all succeeded.Palantir 2.97.0 with
GOOGLEstyle keeps the closing parenthesis beside the final parameter:Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issue