Skip to content

Updating guava library to 32#16

Open
vikasrathee-cs wants to merge 1 commit intodevelopfrom
gauva-upgrade-v1
Open

Updating guava library to 32#16
vikasrathee-cs wants to merge 1 commit intodevelopfrom
gauva-upgrade-v1

Conversation

@vikasrathee-cs
Copy link
Collaborator

Upgrade Guava library from 13.0.1 to 32.0.0-jre

Upgrade Guava across the entire CDAP codebase spanning 566 files.
This is a major upgrade covering ~20 major versions with extensive
API migration.

Key changes:

  • Update guava.version property from 13.0.1 to 32.0.0-jre
  • Add failureaccess 1.0.2 transitive dependency
  • Remove module-level guava.version overrides (6 modules)
  • Replace removed APIs: Throwables.propagate/propagateIfInstanceOf/
    propagateIfPossible, Closeables.closeQuietly(OutputStream),
    InputSupplier/OutputSupplier, Files.newOutputStreamSupplier
  • Rename moved APIs: Objects.toStringHelper -> MoreObjects,
    Objects.firstNonNull -> MoreObjects, sameThreadExecutor ->
    directExecutor, Iterators.emptyIterator -> Collections
  • Fix signature changes: Futures.addCallback/transform 2-arg to 3-arg,
    hashString now requires Charset parameter
  • Migrate Service API: startAndWait -> startAsync().awaitRunning(),
    stopAndWait -> stopAsync().awaitTerminated(), start/stop ->
    startAsync/stopAsync, getServiceName -> serviceName
  • Fix Stopwatch: constructor -> factory methods, elapsedTime -> elapsed
  • Replace ServiceListenerAdapter with Service.Listener (Twill compat)
  • Replace CharMatcher constants with method calls
  • Migrate Guava Optional to java.util.Optional (4 files)
  • Delete GuavaClassRewriter (no longer needed with Guava 32)
  • Create InputSupplier/OutputSupplier replacement interfaces

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