Skip to content

Upgrade google-java-format to 2.0.0 - #1730

Open
balamurugana wants to merge 1 commit into
minio:masterfrom
balamurugana:google-java-format-2.0.0
Open

balamurugana wants to merge 1 commit into
minio:masterfrom
balamurugana:google-java-format-2.0.0

Conversation

@balamurugana

@balamurugana balamurugana commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Upgrade google-java-format 1.36.1 → 2.0.0 in the Spotless config.
  • Reformat the code with ./gradlew spotlessApply. This PR contains only formatter output.

What the reformat changes

  • Lambdas: in MinioAsyncClient, BaseS3Client, Signer, GetObjectAttributesArgs and functional/TestMinioClient, a lambda that is the only argument of a call now starts on the same line as the call.
  • Cleanups from the 2.0.0 cleanup pass: a stray ; is removed in SelectResponseStream, and @Parameter() becomes @Parameter in HttpExternalCertificatesTest.

The google-java-format 2.0.0 release notes recommend reformatting in a single commit. This commit can be added to a .git-blame-ignore-revs file so it is skipped by git blame.

Test plan

  • ./gradlew build
  • ./gradlew build -Prelease

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Includes maintenance-only updates to code formatting. These changes do not affect client behavior or available functionality. No user-facing features, bug fixes, or API changes are included.

Reformat the code with ./gradlew spotlessApply. google-java-format 2.0.0
keeps a lambda that is the only argument of a call on the same line as
the call, and its cleanup pass removes a stray semicolon and empty
annotation parentheses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request reformats Java code across asynchronous S3 response handling, client operations, and helper methods. It also updates the configured Google Java Format version from 1.36.1 to 2.0.0. The summaries report no behavior changes.

Changes: Java formatting update

Layer / File(s) Summary
Asynchronous S3 response handling
api/src/main/java/io/minio/BaseS3Client.java
Reformats asynchronous continuations and response handlers for S3 operations. The summarized request, parsing, error, and cleanup behavior remains unchanged.
Asynchronous client operations
api/src/main/java/io/minio/MinioAsyncClient.java
Reformats object operations, multipart uploads, bucket configuration handling, and append operations. The summarized behavior remains unchanged.
Helper and supporting formatting
api/src/main/java/io/minio/GetObjectAttributesArgs.java, api/src/main/java/io/minio/SelectResponseStream.java, api/src/main/java/io/minio/Signer.java, api/src/test/java/io/minio/HttpExternalCertificatesTest.java, build.gradle, functional/TestMinioClient.java
Reformats helper expressions and supporting test code, removes a standalone semicolon, and updates the Google Java Format version to 2.0.0.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Possibly related PRs

  • minio/minio-java#1727: It keeps Google Java Format at 1.36.1, while this pull request updates it to 2.0.0.
Merge Risk: Minimal · up to 70ca3

This PR upgrades the code formatter and reformats the code, with no intended behavior change. No concrete risk was identified, so it is low-risk to merge. The CodeQL job failed on a dependency download error, not on the code, and should be re-run.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: upgrading google-java-format to 2.0.0. The objectives and raw summary confirm the Spotless formatter version bump from 1.36.1 to 2.0.0 in build.gradle, plus the format…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: upgrading google-java-format to 2.0.0. The objectives and raw summary confirm the Spotless formatter version bump from 1.36.1 to 2.0.0 in build.gradle, plus the formatting-only reformat across the listed Java files. The title is short, specific, and matches the changeset.

Finishing Touches

Fix failing CI checks

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the lines in rows,
Neat commas where the formatter goes.
The async paths keep their old pace,
No changed behavior takes their place.
I nibble clover, pleased with style.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 6b5e0756-e011-4393-8f34-99c784c5335c
Commits

Reviewing files that changed from the base of the PR and between 98d1014 and 70ca384.

Files selected for processing: 8

  • api/src/main/java/io/minio/BaseS3Client.java
  • api/src/main/java/io/minio/GetObjectAttributesArgs.java
  • api/src/main/java/io/minio/MinioAsyncClient.java
  • api/src/main/java/io/minio/SelectResponseStream.java
  • api/src/main/java/io/minio/Signer.java
  • api/src/test/java/io/minio/HttpExternalCertificatesTest.java
  • build.gradle
  • functional/TestMinioClient.java
Files with no reviewable changes: 1

  • api/src/main/java/io/minio/SelectResponseStream.java

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant