Skip to content

Upgrade Guava library from 13.0.1 to 32.0.0-jre#64

Open
AbhishekKumar9984 wants to merge 1 commit into
cdapio:developfrom
cloudsufi:twill-cloudsufi-guava-upgrade
Open

Upgrade Guava library from 13.0.1 to 32.0.0-jre#64
AbhishekKumar9984 wants to merge 1 commit into
cdapio:developfrom
cloudsufi:twill-cloudsufi-guava-upgrade

Conversation

@AbhishekKumar9984
Copy link
Copy Markdown

Migrated all removed and deprecated Guava APIs across 74 files:

  • Objects.toStringHelper() -> MoreObjects.toStringHelper()
  • Objects.hashCode/equal -> java.util.Objects.hash/equals
  • new Stopwatch()/elapsedTime() -> Stopwatch.createStarted()/elapsed()
  • Charsets.UTF_8 -> StandardCharsets.UTF_8
  • InputSupplier/OutputSupplier -> Callable<Reader/Writer>
  • Guava Optional -> java.util.Optional
  • Futures.addCallback/transform 2-arg -> 3-arg with Executor
  • Futures.immediateCheckedFuture -> Futures.immediateFuture
  • Service.start/stop/startAndWait/stopAndWait -> startAsync/stopAsync/awaitRunning/awaitTerminated
  • ServiceListenerAdapter: implements -> extends Service.Listener
  • Ranges/DiscreteDomains -> Range/DiscreteDomain/ContiguousSet
  • Files.createTempDir() -> Files.createTempDirectory()
  • hasher.putString/hashString -> added Charset parameter
  • Files.newOutputStreamSupplier/newReaderSupplier -> Java NIO equivalents
  • getServiceName() -> serviceName()

Migrated all removed and deprecated Guava APIs across 74 files:
- Objects.toStringHelper() -> MoreObjects.toStringHelper()
- Objects.hashCode/equal -> java.util.Objects.hash/equals
- new Stopwatch()/elapsedTime() -> Stopwatch.createStarted()/elapsed()
- Charsets.UTF_8 -> StandardCharsets.UTF_8
- InputSupplier/OutputSupplier -> Callable<Reader/Writer>
- Guava Optional -> java.util.Optional
- Futures.addCallback/transform 2-arg -> 3-arg with Executor
- Futures.immediateCheckedFuture -> Futures.immediateFuture
- Service.start/stop/startAndWait/stopAndWait -> startAsync/stopAsync/awaitRunning/awaitTerminated
- ServiceListenerAdapter: implements -> extends Service.Listener
- Ranges/DiscreteDomains -> Range/DiscreteDomain/ContiguousSet
- Files.createTempDir() -> Files.createTempDirectory()
- hasher.putString/hashString -> added Charset parameter
- Files.newOutputStreamSupplier/newReaderSupplier -> Java NIO equivalents
- getServiceName() -> serviceName()
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 6, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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