Skip to content

[Hotfix] Replace Jersey Guava imports with Amoro shaded Guava#3674

Merged
zhoujinsong merged 1 commit intoapache:masterfrom
zhongqishang:fix-guava-import
Jul 22, 2025
Merged

[Hotfix] Replace Jersey Guava imports with Amoro shaded Guava#3674
zhoujinsong merged 1 commit intoapache:masterfrom
zhongqishang:fix-guava-import

Conversation

@zhongqishang
Copy link
Contributor

Why are the changes needed?

Close #xxx.

Brief change log

  • Replace Jersey Guava imports with Amoro shaded Guava
  • Add checkstyle rule

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

<message key="import.illegal" value="{0}; Use amoro shaded guava instead."/>
</module>

<module name="IllegalImport">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we need to update this with Regex property on?

https://checkstyle.sourceforge.io/checks/imports/illegalimport.html#Properties

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This package may have been imported accidentally. I think IllegalImport is enough.

Of course, Regex can better detect the error introduction in the code.
If need to check for incorrect references in code, it is best to use Regex.

Copy link
Member

@klion26 klion26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhoujinsong zhoujinsong merged commit 419a947 into apache:master Jul 22, 2025
6 checks passed
@zhoujinsong
Copy link
Contributor

Thanks for the contribution! @zhongqishang

@zhongqishang zhongqishang deleted the fix-guava-import branch July 22, 2025 11:07
@Jzjsnow Jzjsnow mentioned this pull request Aug 11, 2025
52 tasks
Jzjsnow pushed a commit to Jzjsnow/amoro that referenced this pull request Aug 20, 2025
…#3674)

Resolve conflicts in src/main/java/org/apache/amoro/server/dashboard/controller/SettingController.java
(cherry picked from commit 419a947)
@Jzjsnow Jzjsnow mentioned this pull request Aug 20, 2025
3 tasks
zhoujinsong pushed a commit that referenced this pull request Aug 25, 2025
Resolve conflicts in src/main/java/org/apache/amoro/server/dashboard/controller/SettingController.java
(cherry picked from commit 419a947)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants