Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #1834: Refactor to Replace Guava with JDK Built-In Functionalities #1836

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mdxabu
Copy link
Contributor

@mdxabu mdxabu commented Nov 9, 2024

@rohanKanojia, This PR refactors several classes by replacing Guava-specific collections and utilities with their corresponding Java Standard Library counterparts #1834. The following changes have been made:

  • AbstractDockerMojo.java:

    • I replaced ImmutableList with List and used ArrayList to build the list and Collections.unmodifiableList for immutability.
  • ContainerNamingUtil.java:

    • I replaced ImmutableSet with HashSet and switched to Collections.unmodifiableSet for immutability.
  • CredentialHelperClient.java:

    • I replaced Guava's Joiner with String.join() and Lists.newLinkedList() with new LinkedList<>().
  • ImageNameFormatter.java:

    • I replaced Guava's Strings.isNullOrEmpty() with String.isNullOrEmpty().
  • JibServiceUtil.java:

    • Removed unused Guava imports.

Please review and merge when ready. Feel free to let me know if you have any questions or concerns.

@mdxabu mdxabu requested a review from rohanKanojia November 10, 2024 16:15
Copy link

sonarcloud bot commented Nov 23, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
77.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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.

2 participants