Skip to content

Conversation

@dkropachev
Copy link

It fixes ~8 vulnurabilities that comming from guava dependency.

It fixes ~8 vulnurabilities that comming from guava dependency.
@dkropachev dkropachev changed the title Update guava to 33.3.1-jre 3.x: Update guava to 33.3.1-jre Dec 9, 2025
@dkropachev dkropachev marked this pull request as ready for review December 9, 2025 02:11
// Guava < 22.0
return hostAndPort.getHostText();
}
// Guava >= 20.0
Copy link

Choose a reason for hiding this comment

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

Javadoc comment states that "driver is compatible with Guava 19.0 or higher", but the comment above contradicts it. Is Guava 19.0 supported?

* Returns the portion of the given {@link HostAndPort} instance that should represent the
* hostname or IPv4/IPv6 literal.
*
* <p>The method {@code HostAndPort.getHostText} has been replaced with {@code
Copy link

Choose a reason for hiding this comment

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

I think reference to removed HostAndPort.getHostText can be dropped now.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Guava dependency from version 19.0 to 33.3.1-jre to address approximately 8 security vulnerabilities. The update includes removing legacy compatibility code for older Guava versions (< 19.0) and migrating from deprecated APIs to their modern equivalents.

  • Updates Guava dependency version from 19.0 to 33.3.1-jre
  • Removes legacy compatibility layer for Guava versions below 19.0
  • Migrates from deprecated immediateCheckedFuture to immediateFuture API

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pom.xml Updates Guava version property and Javadoc API documentation link to 33.3.1-jre
driver-core/src/main/java/com/datastax/driver/core/GuavaCompatibility.java Removes legacy Guava < 19 compatibility code, simplifies version detection, removes unused imports, and updates documentation
driver-core/src/test/java/com/datastax/driver/core/AbstractReconnectionHandlerTest.java Migrates from deprecated Futures.immediateCheckedFuture() to Futures.immediateFuture()

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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