Skip to content

[MINOR] improvement: fix typos of guava imports#9432

Merged
jerryshao merged 1 commit intobranch-1.1from
cherry-pick-branch-1.1-cf9612c4fca9492e23725d1629b789dd2f7d75b8
Dec 10, 2025
Merged

[MINOR] improvement: fix typos of guava imports#9432
jerryshao merged 1 commit intobranch-1.1from
cherry-pick-branch-1.1-cf9612c4fca9492e23725d1629b789dd2f7d75b8

Conversation

@github-actions
Copy link

What changes were proposed in this pull request?

Some Sets in the project are pointed to the shadowed one in Glassfish, rather than original Guava.

  1. Search through the project to replace all import org.glassfish.jersey.internal.guava.Xxss to its corresponding com.google.common.collect.Xxxs.
  2. Add 3 replaceRegex actions to Spotless plugin, to ensure no similar issues in the future.

Why are the changes needed?

For sure the one from original Guava should be preferred, because shadowed classes are normally used for internal purposes of the party who package them, and are not intended to expose as a contract.

Fix: No functionality issue involved.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit tests all passed. Plus, the implementations of two classes are identical, so in fact as long as it compiles right, we are good to go I believe.

### What changes were proposed in this pull request?

Some `Sets` in the project are pointed to the shadowed one in Glassfish,
rather than original Guava.

1. Search through the project to replace all `import
org.glassfish.jersey.internal.guava.Xxss` to its corresponding
`com.google.common.collect.Xxxs`.
2. Add 3 `replaceRegex` actions to Spotless plugin, to ensure no similar
issues in the future.

### Why are the changes needed?

For sure the one from original Guava should be preferred, because
shadowed classes are normally used for internal purposes of the party
who package them, and are not intended to expose as a contract.

Fix: No functionality issue involved. 

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Unit tests all passed. Plus, the implementations of two classes are
identical, so in fact as long as it compiles right, we are good to go I
believe.

---------

Co-authored-by: wancheng.aliyun <tuohai@alibaba-inc.com>
@github-actions github-actions bot requested a review from jerryshao December 10, 2025 01:13
@yuqi1129 yuqi1129 closed this Dec 10, 2025
@yuqi1129 yuqi1129 reopened this Dec 10, 2025
@jerryshao jerryshao merged commit bc2c384 into branch-1.1 Dec 10, 2025
26 checks passed
@jerryshao jerryshao deleted the cherry-pick-branch-1.1-cf9612c4fca9492e23725d1629b789dd2f7d75b8 branch December 10, 2025 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants