-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Guava usages in main source in favor of JDK built-ins (#76)
* Fix documentation methods called on `Duration` * Use newer support for Guava `CharMatcher`s since the constants were removed in Guava 26.0 and the preferred access pattern is the methods that were added in Guava 19.0 This makes the minimum version of the Cassandra Java Driver go up and supports Guava 19+. Ideally, these methods should be updated to not require use of `CharMatcher` to not couple with the Guava version that the Cassandra driver uses. Some hackery could be added to check if `CharMatcher.WHITESPACE` exists for Guava 18 and the current Cassandra version and then use `CharMatcher.whitespace()` on more recent versions, but this would increase complexity. * Replace all Guava usages with JDK built-ins Guava used in test library in the same way it exists today. A test is added to ensure that the hashing output used now is the same as what the Guava hashing output would be. * Simplify `bytesToHex` implementation
- Loading branch information
Showing
10 changed files
with
112 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.