Skip to content
CAI
Software that uses CAICheck a score

google/guava

63.8

Adequate · 13 November 2026

420.2k

lines of production code

Java

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add Java Platform Module System definitions for Guava and Guava Testlib

This change introduces \module-info.java\ files for both the main \guava\ library (module \com.google.common\) and the \guava-testlib\ (module \com.google.common.testlib\). These definitions declare the module's exported packages and its dependencies on other modules, such as \java.logging\, \junit\, and various Google internal annotations. This enables Guava to be used as a proper Java Platform Module System (JPMS) module, improving modularity and dependency management for users running on Java 9+.

guava-testlib/src, guava/src · high confidence

Add XML escapers and nullness annotations to the Android Guava package

This change introduces the \com.google.common.xml\ package to the Android build of Guava, providing \XmlEscapers\ for safely escaping strings in XML content and attribute values, along with a \ParametricNullness\ annotation to support null-safety tools like NullAway. The package is marked with \@NullMarked\ and \@CheckReturnValue\ to enforce null-safety and return-value checking for consumers.

android/guava/src/com/google/common/xml · high confidence

Add escape package sources to Guava for Android

The \com.google.common.escape\ package is now included in the Guava distribution for Android. This adds core escaping utilities such as \Escaper\, \CharEscaper\, \UnicodeEscaper\, and \Escapers\ (including the \Builder\), along with supporting classes like \ArrayBasedEscaperMap\ and \Platform\. Users can now utilize these classes for text escaping on Android devices.

android/guava/src/com/google/common/escape · high confidence

Added benchmark for UnsignedLongs methods

A new Caliper benchmark has been added for the UnsignedLongs utility class, measuring the performance of division, remainder, parsing (from decimal, hex, and binary strings), decoding, and string conversion methods.

guava-tests/benchmark/com/google/common/primitives · high confidence

GWT cache implementation now supports size limits, expiration, and statistics

The GWT supersource for com.google.common.cache has been rewritten to emulate LocalCache, adding support for maximum size enforcement, expiration (after access and write), tickers, removal listeners, and statistics recording. This change introduces new internal classes (CapacityEnforcingMap, LongAddables) to handle these features in the GWT environment, aligning the GWT cache behavior more closely with the standard JRE implementation.

guava-gwt/src-super/com/google/common/cache · high confidence

GWT emulation layer for util.concurrent futures and utilities

This change introduces a new GWT super-source emulation layer for the \com.google.common.util.concurrent\ package, enabling Guava's asynchronous utilities to function in GWT/J2CL environments. It provides structural JavaScript interoperability by implementing the \IThenable\ interface on \ListenableFuture\ via a default \then()\ method, allowing seamless integration with native JS promises. The update also includes GWT-specific implementations for core components such as \AbstractFutureState\, \AggregateFutureState\, \InterruptibleTask\, and \Uninterruptibles\, alongside specialized \catching\ and \catchingAsync\ method signatures in \GwtFluentFutureCatchingSpecialization\ and \GwtFuturesCatchingSpecialization\ that enforce stricter type requirements for exception handling.

guava-gwt/src-super/com/google/common/util · high confidence

GWT emulation of Guava collection classes is added

The GWT super-source directory for com.google.common.collect now includes emulated versions of core collection classes, including AbstractSortedMultiset, DescendingMultiset, EnumMultiset, ForwardingImmutableCollection, ForwardingImmutableList, ForwardingImmutableMap, ForwardingImmutableSet, ForwardingSortedMultiset, ImmutableBiMap, ImmutableCollection, ImmutableEnumMap, and ImmutableEnumSet. This brings the GWT-compatible collection implementations in line with the current Java implementation, ensuring that applications using Guava collections in GWT environments have access to the same APIs and behaviors as on the JVM.

guava-gwt/src-super/com/google/common/collect · high confidence

GWT platform-specific escaper implementation added

A new Platform class has been introduced in the GWT super-source directory to handle platform-specific optimizations for the escape utilities. Since GWT does not support ThreadLocal, this implementation provides a thread-safe character buffer by reusing a single static instance, leveraging the fact that JavaScript execution is single-threaded. This change ensures that the escape classes function correctly within the GWT environment without relying on unavailable Java concurrency primitives.

guava-gwt/src-super/com/google/common/escape · high confidence

Initial project setup and documentation

This change establishes the foundational structure for the Guava project by adding essential documentation and configuration files. It introduces a comprehensive README.md detailing the JRE and Android flavors, build instructions for Maven and Gradle, and important usage warnings. A CONTRIBUTING.md file is added to guide external contributors on the pull request process and CLA requirements, while a CONTRIBUTORS file credits specific authors. The repository is configured with a .gitattributes file to enforce consistent line endings, a .gitignore file to exclude build artifacts and IDE settings, and the Apache 2.0 LICENSE file. Additionally, Maven Wrapper scripts (mvnw, mvnw.cmd) are included to ensure reproducible builds, and an overview.html is provided for Javadoc generation.

(repo-wide) · high confidence

Introduce Android-specific concurrent utility implementations

Adds a new set of core \com.google.common.util.concurrent\ classes to the Android flavor of Guava, including \AbstractFuture\, \AbstractCatchingFuture\, \AbstractTransformFuture\, \AbstractService\, and various service base classes (\AbstractIdleService\, \AbstractExecutionThreadService\, \AbstractScheduledService\). These files provide the foundational implementations for \ListenableFuture\ and the Service lifecycle management on Android, ensuring compatibility with Android's runtime environment and tooling (such as J2ObjC and GWT).

android/guava/src/com/google/common/util · high confidence

Introduce new graph implementation hierarchy and base classes

The \com.google.common.graph\ package now provides a new skeletal implementation hierarchy to simplify custom graph implementations and ensure consistent behavior. New abstract base classes \AbstractGraph\, \AbstractNetwork\, and \AbstractValueGraph\ are introduced, extending a new internal \AbstractBaseGraph\. These classes provide default implementations for \equals()\, \hashCode()\, and \toString()\ that are consistent across all graph types, removing the need for users to implement these manually. Additionally, new internal interfaces \ArchetypeGraph\ and \BaseGraph\ define shared methods for nodes, edges, and connectivity, while \AbstractGraphBuilder\ standardizes the configuration of directedness, self-loops, and element ordering for graph builders.

guava/src/com/google/common/graph · high confidence

Introduce new networking utility classes and release existing APIs

This change introduces several new classes to the \com.google.common.net\ package: \HostSpecifier\ for validating and normalizing host names and IP addresses for use in URIs, and \ParametricNullness\ to support advanced nullness analysis for type variables. It also releases several previously internal or beta APIs into stable or public status, including \MediaType\ (previously beta), \HttpHeaders\ (previously internal), and the escaper classes (\Escaper\, \HtmlEscapers\, \XmlEscapers\, \UrlEscapers\). Additionally, it adds a \urlFragmentEscaper()\ to \UrlEscapers\ and updates \InetAddresses\ to preserve IPv6 scope IDs and use \murmur32\_fixed\ for hashing IPv6-to-IPv4 coercion.

guava/src/com/google/common/net · high confidence

Introduce the com.google.common.cache package

Adds the new \com.google.common.cache\ package, providing a complete caching API including the \Cache\ and \LoadingCache\ interfaces, a \CacheBuilder\ for constructing caches with features like size limits, expiration, and statistics, and \CacheLoader\ for automatic value loading. The package also includes abstract base classes (\AbstractCache\, \AbstractLoadingCache\) and forwarding implementations (\ForwardingCache\, \ForwardingLoadingCache\) to simplify custom cache implementations.

guava/src/com/google/common/cache · high confidence

Introduction of HTML escaping utilities and nullness annotations

This change introduces the \com.google.common.html\ package, providing \HtmlEscapers\ for escaping HTML metacharacters (such as quotes, ampersands, and angle brackets) to make strings safe for inclusion in HTML attribute values and most text contents. It also adds the \ParametricNullness\ annotation to help null-safety tools understand how nullness propagates through type variables, and applies \@CheckReturnValue\ and \@NullMarked\ annotations at the package level to enforce result usage and null-safety conventions.

guava/src/com/google/common/html · high confidence

Introduction of Maven Wrapper with specific version configuration

The project now includes a Maven Wrapper, allowing developers to build the project without manually installing Maven. The configuration file (maven-wrapper.properties) specifies the use of Maven Wrapper version 3.3.4, which downloads and uses Apache Maven 3.9.12. The distribution is configured as a script type, and a SHA-256 checksum is provided to verify the integrity of the downloaded Maven binary.

.mvn · high confidence

Introduction of the Escaper API for text escaping

This change introduces the \com.google.common.escape\ package, providing the core \Escaper\ interface along with optimized implementations \CharEscaper\ and \UnicodeEscaper\. It adds \Escapers\ for building custom escapers and a \nullEscaper\, as well as \ArrayBasedEscaperMap\ for sharing replacement data structures. This establishes the foundational API for escaping text in contexts like HTML, XML, and URLs.

guava/src/com/google/common/escape · high confidence

Introduction of the new Graph API in Guava for Android

This release introduces the new \com.google.common.graph\ package to the Android build of Guava, providing a comprehensive set of interfaces and implementations for graph data structures. The API includes \Graph\, \ValueGraph\, and \Network\ interfaces, along with builders (\GraphBuilder\, \ValueGraphBuilder\, \NetworkBuilder\) and concrete implementations like \MutableGraph\ and \ImmutableNetwork\. Key features include support for directed and undirected graphs, parallel edges, self-loops, and stable incident edge ordering. The implementation also provides views such as \asNetwork()\ for graphs and \asGraph()\ for networks, allowing seamless conversion between node-oriented and edge-oriented representations.

android/guava/src/com/google/common/graph · high confidence

Introduction of the standalone ListenableFuture artifact

A new \futures/listenablefuture1\ artifact has been introduced, containing a standalone copy of the \ListenableFuture\ interface. This allows users to depend on \ListenableFuture\ without pulling in the full Guava library. The interface includes nullness annotations via JSpecify (\@NullMarked\) and a \@DoNotMock\ annotation to discourage direct implementation, while retaining the core functionality of registering completion listeners.

futures/listenablefuture1 · high confidence

New BigDecimalMath utility class for safe BigDecimal conversions and rounding

A new \BigDecimalMath\ class has been added to \com.google.common.math\, providing arithmetic utilities for \BigDecimal\ that are not covered by the JDK. It introduces \toBigInteger(BigDecimal, int)\ and \toBigIntegerExact(BigDecimal, int)\ methods that safely convert \BigDecimal\ values to \BigInteger\ while enforcing a maximum digit limit to prevent resource exhaustion from malicious inputs. Additionally, it provides \roundToDouble(BigDecimal, RoundingMode)\ to round \BigDecimal\ values to the nearest representable \double\ with specified rounding behavior, handling edge cases like infinite values and precision loss explicitly.

guava/src/com/google/common/math · high confidence

New HostSpecifier class for URI-safe host validation

Added the HostSpecifier class to provide a syntactically valid host specifier suitable for use in URIs, supporting IPv4, IPv6, and domain names with recognized public suffixes. This new utility allows users to validate and normalize host strings without performing network lookups, complementing existing InetAddresses and InternetDomainName utilities.

android/guava/src/com/google/common/net · high confidence

New HtmlEscapers utility and nullness annotations for HTML escaping

This change introduces the \HtmlEscapers\ class, providing a static \htmlEscaper()\ method that escapes HTML metacharacters (\"\, \'\, \&\, \\<\, \\>\) according to HTML 4.01, suitable for use in attribute values and most text contents. It also adds the \ParametricNullness\ annotation to handle nullness propagation for type variables in a way compatible with Kotlin and IntelliJ, and updates the package-level nullness marking to use \@NullMarked\ from jspecify instead of custom annotations.

android/guava/src/com/google/common/html · high confidence

New XML escaping utilities and nullness annotations

The \com.google.common.xml\ package now provides \XmlEscapers\ with \xmlContentEscaper()\ and \xmlAttributeEscaper()\ methods to safely escape strings for XML documents, handling special characters like quotes and control codes according to the XML specification. The package also introduces the \@ParametricNullness\ annotation to help static analysis tools understand nullness in generic types, and applies \@CheckReturnValue\ and \@NullMarked\ annotations to enforce usage of escaper results and define null-safety contracts.

guava/src/com/google/common/xml · high confidence

New internal module for optimized Future failure access

A new \failureaccess\ module has been introduced to provide micro-optimizations for handling failed Futures. This change adds the \InternalFutureFailureAccess\ abstract class and the \InternalFutures\ utility class, which allow internal implementations to optionally expose the cause of a failure without blocking or exposing the method to end users. The module is modularized via a \module-info.java\ file, exporting the internal package to support these optimizations within the Guava ecosystem.

futures/failureaccess · high confidence

New math utility classes added to Guava for Android

This change introduces several new utility classes to the \com.google.common.math\ package for Android users: \BigDecimalMath\ provides safe conversion of \BigDecimal\ to \BigInteger\ with bounds checking to prevent resource exhaustion, and rounding to \double\; \BigIntegerMath\ offers arithmetic operations like logarithms and power-of-two checks for \BigInteger\ values; \DoubleMath\ and \DoubleUtils\ add advanced rounding and bit-level manipulation for \double\ primitives; \LinearTransformation\ enables building and applying linear transformations (including vertical and horizontal cases); and \PairedStatsAccumulator\ allows accumulating paired statistics. These additions expand the mathematical capabilities available in Guava for Android.

android/guava/src/com/google/common/math · high confidence

New reflection utilities and type-safety annotations

The \com.google.common.reflect\ package introduces several new capabilities and structural improvements. \AbstractInvocationHandler\ provides a base class for implementing \InvocationHandler\ with built-in delegation for \equals\, \hashCode\, and \toString\, allowing subclasses to focus on \handleInvocation\. \TypeToInstanceMap\ (along with \ImmutableTypeToInstanceMap\ and \MutableTypeToInstanceMap\) offers a type-safe map for binding generic types to instances, complementing \ClassToInstanceMap\. \TypeVisitor\ enables safe navigation of complex type hierarchies without infinite recursion. Additionally, the \@ParametricNullness\ annotation allows nullness to be derived from type arguments, and \Invokable\ now returns resolved \ParameterizedType\ for constructors of parameterized classes, ensuring consistency with method invokables. The package is also annotated with \@NullMarked\ and \@CheckReturnValue\ to enforce null-safety and result usage.

guava/src/com/google/common/reflect · high confidence

New testing utilities in guava-testlib

Added a suite of testing utilities to the \guava-testlib\ module, including \AbstractPackageSanityTests\ for automated sanity checks on entire packages, \ClassSanityTester\ for testing individual classes, \EqualsTester\ and \EquivalenceTester\ for verifying equality and equivalence contracts, \ForwardingWrapperTester\ for validating forwarding wrappers, \NullPointerTester\ for checking null-handling, \FakeTicker\ for time-based testing, and \ArbitraryInstances\ for generating test data. These tools are designed to simplify and standardize unit testing for Guava users.

guava-testlib/src/com/google/common/testing · high confidence

Open-source Guava utility and event-bus benchmarks

New Caliper benchmarks are now available for the EventBus, AbstractFuture, CycleDetectingLockFactory, ExecutionList, Futures.getChecked, Monitor, MoreExecutors (directExecutor), Striped, and the Monitor-based blocking queues. These benchmarks allow users to measure performance and memory footprint of Guava's concurrent utilities and event bus, covering scenarios such as lock nesting, future completion and cancellation, executor execution speed, and striped lock construction and access.

guava-tests/benchmark/com/google/common/util · high confidence

Publish Proguard configurations for Guava modules

Guava now publishes dedicated Proguard configuration files (base.pro, cache.pro, collect.pro, concurrent.pro, hash.pro, primitives.pro) to ensure correct behavior when the library is optimized and obfuscated. These configurations preserve specific internal fields and classes required by reflection, Unsafe, and VarHandle usage (such as in AbstractFuture and Striped64), and suppress warnings for internal JDK APIs, allowing users to safely shrink and obfuscate their applications using Guava.

proguard · high confidence

Reorganize hashing internals and introduce new hash functions

The \com.google.common.hash\ package has been restructured with new abstract base classes (\AbstractHasher\, \AbstractByteHasher\, \AbstractHashFunction\, \AbstractNonStreamingHashFunction\) to simplify the implementation of hash algorithms. This change introduces several new public hash functions: \Hashing.crc32c()\ for CRC32C checksums, \Hashing.farmHashFingerprint64()\ for FarmHash's 64-bit fingerprint, and \Hashing.fingerprint2011()\ for Geoff Pike's fingerprint algorithm. Additionally, \BloomFilter\ now implements \Predicate\ (with \test\ delegating to \mightContain\), supports non-power-of-2 bit array sizes, and includes new methods for merging (\putAll\, \isCompatible\) and serialization (\writeTo\, \readFrom\, \serializedSize\).

guava/src/com/google/common/hash · high confidence

Web-optimized min/max implementations for primitive arrays

The Guava GWT module now includes specialized implementations for the min and max operations on Doubles, Floats, Ints, and Shorts arrays. These new classes delegate to the native JavaScript Math.min and Math.max functions, providing a more efficient path for these common operations when running in a web browser environment.

guava-gwt/src-super/com/google/common/primitives · high confidence

Behavioural changes

14 commits (1 fix) modifying util

A change to existing behaviour in util — 14 commits (1 fix), 3 files: “Silence noisy logging of downloads ("transfers") in more places”; “Continue uploading snapshots now that we're building only with JDK 8”; “Modify our internal release script to run Gradle integration tests during Guava releases”; and 11 more.

util · medium confidence · unverified

16 commits (0 fixes) modifying android/guava/src/com/google/common/base/internal

A change to existing behaviour in android/guava/src/com/google/common/base/internal — 16 commits, 1 file: “Under Android, make \FinalizableReferenceQueue\ stop attempting things that (mostly) don't work under Android”; “Handle InheritableThreadLocals correctly on Java 9”; “Migrate from Checker Framework annotations to JSpecify annotations”; and 13 more.

android/guava/src/com/google/common/base/internal · medium confidence · unverified

18 commits (3 fixes) modifying guava-gwt/src-super/java/util/super/java/util/concurrent

A change to existing behaviour in guava-gwt/src-super/java/util/super/java/util/concurrent — 18 commits (3 fixs), 15 files. Also in this area: Guava for Android: New base utilities and nullness annotations; Documentation update clarifying SimpleStatsCounter snapshot consistency.

(repo-wide) · low confidence · unverified

33 commits (2 fixes) modifying guava/src/com/google/common/base/internal

A change to existing behaviour in guava/src/com/google/common/base/internal — 33 commits (2 fixs), 1 file: “reformat”; “Use the type annotation version of @Nullable in the Java 8 branch”; “Under Android, make \FinalizableReferenceQueue\ stop attempting things that (mostly) don't work under Android”; and 30 more.

guava/src/com/google/common/base/internal · medium confidence · unverified

Added package-list for j2objc-annotations in Android Guava

A package-list file for the j2objc-annotations library has been added to the android/guava directory structure. This file explicitly declares the com.google.j2objc.annotations package, enabling the Android backport build process to correctly resolve and link Javadoc references for this specific dependency.

android/guava · high confidence

Clarified usage guidance for @Beta and @VisibleForTesting annotations

The Javadoc for the @Beta annotation has been updated to explicitly warn library authors against depending on beta APIs, reinforcing that such dependencies are inadvisable due to potential incompatible changes or removals in future releases. Additionally, the @VisibleForTesting annotation's documentation now strongly discourages its use on public or protected declarations, labeling it a "fig leaf for bad design" and directing users to use RestrictedApiChecker for enforcing fine-grained visibility policies instead.

guava/src/com/google/common/annotations · high confidence

Ensure Guava GWT Javadoc and compilation artifacts are generated

The Guava GWT module now guarantees the production of a non-empty Javadoc JAR and forces a full GWT compilation during the build process. This is achieved by adding a dummy \DummyJavadocClass\ to satisfy Maven's Javadoc plugin requirements (preventing Sonatype repository errors) and introducing a \ForceGuavaCompilation\ module with a dummy entry point to ensure all Guava classes are compiled against the GWT compiler.

guava-gwt/src/com/google/common · high confidence

EventBus API and dispatch behavior updates

The EventBus package introduces the @AllowConcurrentEvents annotation to mark subscriber methods as thread-safe, allowing simultaneous invocation from multiple threads. The @Subscribe annotation is now meta-annotated with @Keep to prevent removal by obfuscators. A new SubscriberExceptionHandler interface and SubscriberExceptionContext class provide structured error handling and context for exceptions thrown by subscribers. The dispatch mechanism is refactored into a Dispatcher abstraction with immediate, legacy-async, and per-thread-queue strategies, changing how event ordering and execution are managed. Additionally, the package migrates to JSpecify nullness annotations and removes the @Beta annotation from core classes.

android/guava/src/com/google/common/eventbus · high confidence

EventBus package restructured with new dispatch and exception-handling APIs

The EventBus package has been refactored to improve thread safety, performance, and error handling. A new Dispatcher abstraction replaces the previous internal dispatch logic, offering three strategies: per-thread queuing (default, breadth-first), immediate dispatch (depth-first), and legacy async. The Subscriber class now wraps methods in a SynchronizedSubscriber when the @AllowConcurrentEvents annotation is absent, ensuring serial execution by default. Exception handling is centralized via the new SubscriberExceptionHandler interface and SubscriberExceptionContext, allowing custom handling of subscriber errors instead of silent logging. Additionally, the @Subscribe annotation is now meta-annotated with @Keep to prevent removal by minimizers, and the package is marked with @NullMarked for improved null-safety checking.

guava/src/com/google/common/eventbus · high confidence

GWT test iteration reduction via new TestPlatform helper

A new \TestPlatform\ class has been added to the GWT test suite to provide a \reduceIterationsIfGwt\ method that divides iteration counts by 10, effectively reducing the execution time of tests like \testBuilder\_bruteForce\ when running under GWT. The class is marked with \@GwtCompatible\ and includes a private constructor to adhere to utility class conventions.

guava-gwt/test-super/com/google/common/primitives · high confidence

Improved error messaging in EqualsTester

The EqualsTester utility now provides more descriptive error messages when equality checks fail, making it easier for developers to diagnose issues with their equals and hashCode implementations during testing. Also in this area: 1 commit adding/updating tests in android/guava-testlib, guava-testlib; Added test infrastructure and utilities for Guava Android; 15 commits adding/updating tests in guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers.

android/guava-testlib/src/com/google/common/collect/testing, android/guava-testlib/src/com/google/common/testing, guava-testlib/src/com/google/common/collect/testing · high confidence · unverified

Migrate to JSpecify nullness annotations

The \com.google.common.base\ package has migrated from the Checker Framework's \@NullableDecl\ to JSpecify's \@Nullable\ annotations. This change updates the nullness annotations on public methods and fields across classes such as \Optional\, \Function\, \Predicate\, \Converter\, and \Equivalence\, improving compatibility with modern nullness-analysis tools.

guava/src/com/google/common/base · high confidence

New annotations for API stability and platform compatibility in Guava for Android

The \com.google.common.annotations\ package now includes \@Beta\ to mark APIs subject to incompatible changes, \@GwtCompatible\ and \@GwtIncompatible\ to indicate Google Web Toolkit support status, and a new \@J2ktIncompatible\ annotation (since version 32.0.0) to flag APIs that do not work with J2kt. Additionally, \@VisibleForTesting\ is provided to annotate test-only code, with documentation advising the use of \RestrictedApiChecker\ for stricter visibility enforcement.

android/guava/src/com/google/common/annotations · high confidence

Optimized string handling and platform utilities for GWT web builds

The Guava GWT module now includes native JavaScript implementations for core string operations (\isNullOrEmpty\, \nullToEmpty\, \emptyToNull\) and platform-specific utilities via the new \Platform\ and \ExtraObjectsMethodsForWeb\ classes. By supersourcing these methods to native JS, string comparisons and null-handling are significantly faster in browser environments. Additionally, \Platform.formatCompact4Digits\ now uses the native \Number.prototype.toPrecision\ for number formatting, and the \Objects.equal\ implementation is optimized for web contexts.

guava-gwt/src-super/com/google/common/base · high confidence

Reorganized hashing internals with new skeletal implementations and expanded ByteBuffer support

The \com.google.common.hash\ package has been refactored to introduce new skeletal base classes (\AbstractHasher\, \AbstractByteHasher\, \AbstractHashFunction\, \AbstractNonStreamingHashFunction\) that simplify the implementation of hash algorithms. This change expands \ByteBuffer\ support across the hashing APIs, allowing more efficient hashing of byte buffers without unnecessary copying. Additionally, the \CRC32C\ algorithm has been optimized using 16-byte strides for significantly improved throughput, and the \fingerprint2011\ hash function has been made publicly available.

android/guava/src/com/google/common/hash · high confidence

Switch to offline linking for third-party annotations

The Javadoc build now uses offline linking for Error Prone and J2ObjC annotations. This ensures that documentation links for these libraries are generated reliably without requiring an active internet connection or external repository access during the build process.

guava/javadoc-link · high confidence

Updated public suffix list data and added RegistrySuffix support

The public suffix list data has been updated to the latest version, ensuring that domain parsing in InternetDomainName correctly recognizes current top-level domains and registry suffixes. Additionally, a new RegistrySuffix notion has been added to InternetDomainName, allowing users to distinguish between public suffixes managed by private companies (like blogspot.com) and those backed by ICANN-style registries (like .com or .uk). This distinction is exposed via the new PublicSuffixType enum, which classifies suffixes as either PRIVATE or REGISTRY, enabling more precise domain analysis for applications that need to differentiate between community-managed and registry-managed domains.

guava/src/com/google/thirdparty · high confidence

Updated public suffix list data and added registry suffix support

The public suffix data used by InternetDomainName has been refreshed to the latest version, including the addition of new suffixes such as web.app and app.link (and removal of mod.uk). The underlying implementation now distinguishes between private and registry suffixes via the new PublicSuffixType enum, allowing InternetDomainName to expose a specific registry suffix for domains.

android/guava/src/com/google/thirdparty · high confidence

Fixes

Fix race condition in Cache.refresh and reset hash table thresholds after resizing

Resolves a potential race condition in Cache.refresh (Guava issue 1337) and fixes a bug where expandTableThreshold and maxRunBeforeFallback were not reset after resizing the hash table (fixing issue \#3570). These changes ensure correct behavior and stability in concurrent caching scenarios and internal hash table management. Also in this area: FileBackedOutputStream now uses FileChannel for temp files to improve resilience; Fix premature garbage collection of finalizable referents; Introduction of Source/Sink abstraction and Closer utility; Fix memory allocation and integer overflow in deserialization and base encoding.

(repo-wide) · medium confidence

Test coverage

12 commits adding/updating tests in android/guava-tests/test/com/google/common/eventbus/outside; 12 commits adding/updating tests in guava-tests/test/com/google/common/eventbus/outside; 14 commits adding/updating tests in guava-tests/test/com/google/common/html; 16 commits adding/updating tests in guava-testlib/src/com/google/common/escape; Add collection testing feature annotations and utilities; Added Android-specific test suite for com.google.common.reflect; Added Caliper benchmarks for Guava math utilities; Added EscaperAsserts test utilities; Added EventBus benchmark for Android; Added GWT emulation layer for Platform utilities in test suite; Added GWT emulation source for collection testing iterations; Added GWT test infrastructure for Guava; Added Google-specific collection test suites for Android; Added Platform utility for test serialization emulation; Added TestPlatform stub for GWT math tests; Added base test suite for AbstractFuture; Added base test suites for Guava collection abstractions; Added benchmarks for BaseEncoding, CharStreams.copy, and ByteSource.asCharSource; Added benchmarks for BaseEncoding, CharStreams.copy, and ByteSource.asCharSource read strategies; Added cache performance benchmarks; Added collection performance benchmarks for Android; Added collection tester classes for the Android flavor of Guava Testlib; Added collection testing infrastructure in guava-testlib; Added comprehensive test coverage for Guava util.concurrent components on Android; Added comprehensive test coverage for the common.hash package; Added comprehensive test coverage for the new Graph and Network APIs; Added comprehensive test suite for EventBus components; Added comprehensive test suite for Guava Cache; Added comprehensive test suite for Guava math utilities; Added comprehensive unit tests for Guava I/O classes in the Android test suite; Added math benchmark suite for Guava and Apache Commons Math; Added microbenchmarks for Guava base utilities; Added microbenchmarks for UnsignedBytes and UnsignedLongs; Added test class for reflect subpackage; Added test coverage for the escape package; Added test suite for Guava math utilities; Added test suite for the common.net package; Added test-feature definitions for Guava collections; Added testing utilities for concurrent executors; Added tests and infrastructure for Guava HTML escaping; Added tests for ForwardingWrapperTester and NullPointerTester package isolation; Added tests for ForwardingWrapperTester in a separate package; Added tests for ListenableFuture and testing executor utilities; Added tests for Public Suffix Trie implementation; Added tests for TestingExecutors; Added tests for XML escapers and platform compatibility annotations; Added tests for XML escaping and Android compatibility annotations; Added tests for collection testing feature annotations and utilities; Added unit tests for Guava base classes; Added unit tests for Guava cache components; Added unit tests for Guava collect testing infrastructure; Added unit tests for Guava hash infrastructure and algorithms; Added unit tests for Guava testing utilities; Added unit tests for guava-testlib collection testing infrastructure; Added unit tests for the escape package; Expanded test coverage for Guava I/O classes; Expanded test coverage for Guava collection utilities; Expanded test coverage for Guava's network utilities; GWT-compatible test infrastructure for Guava collections; Introduces GWT-compatible test platform abstraction for Future operations; New Caliper benchmarks for Guava cache internals; New Caliper microbenchmarks for Guava base classes; New benchmarks for Guava util.concurrent components; New collection benchmarks added to Guava test suite; Refactored graph and network test infrastructure for Android.

Dependencies

Integration tests now use Gradle 9.7.1

The Gradle wrapper in the integration-tests module has been updated to version 9.7.1. This ensures that the integration tests run against the latest Gradle release, providing up-to-date build behavior and compatibility for the test suite.

integration-tests · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 60 → 64 (+3.7)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 76 → 74 (-1.8)
  • Architecture 90 → 91 (+1.2)
  • Maturity 51 → 53 (+1.2)
  • Readiness 65 → 70 (+5.9)
  • Security 73 → 75 (+2.4)

Resolved (182)

  • Confusing overlap: equals checks equality with a specific object (inherited from Object), while equivalent and test check semantic equivalence. equivalent and test are effectively synonyms for each other.
  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • Duplicate operation: apply and convert perform the exact same transformation logic on the input.
  • Duplicate operation: apply and test perform the exact same boolean evaluation on the input.
  • Duplicated block (10 lines × 2) (android/guava-testlib/src/com/google/common/testing/NullPointerTester.java)
  • Duplicated block (10 lines × 2) (android/guava/src/com/google/common/collect/LinkedHashMultimap.java)
  • Duplicated block (10 lines × 2) (android/guava/src/com/google/common/collect/Maps.java)
  • Duplicated block (10 lines × 2) (android/guava/src/com/google/common/collect/TreeRangeMap.java)
  • Duplicated block (10 lines × 2) (android/guava/src/com/google/common/graph/IncidentEdgeSet.java)
  • Duplicated block (10 lines × 2) (android/guava/src/com/google/common/reflect/TypeResolver.java)
  • Duplicated block (11 lines × 2) (android/guava/src/com/google/common/collect/LinkedHashMultimap.java)
  • Duplicated block (11 lines × 2) (android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java)
  • Duplicated block (11 lines × 2) (android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java)
  • Duplicated block (12 lines × 2) (android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java)
  • Duplicated block (12 lines × 2) (android/guava/src/com/google/common/hash/FarmHashFingerprint64.java)
  • Duplicated block (12 lines × 2) (android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java)
  • Duplicated block (13 lines × 2) (android/guava/src/com/google/common/base/Defaults.java)
  • Duplicated block (13 lines × 2) (android/guava/src/com/google/common/base/Strings.java)
  • Duplicated block (13 lines × 2) (android/guava/src/com/google/common/primitives/UnsignedBytes.java)
  • …and 162 more

New (562)

  • Change coupling: ByteSink.java ↔ CharSource.java (guava/src/com/google/common/io/ByteSink.java)
  • Change coupling: DirectedMultiNetworkConnections.java ↔ UndirectedMultiNetworkConnections.java (guava/src/com/google/common/graph/DirectedMultiNetworkConnections.java)
  • Duplicated block (10 lines × 16) (android/guava/src/com/google/common/primitives/Booleans.java)
  • Duplicated block (10 lines × 16) (android/guava/src/com/google/common/primitives/Booleans.java)
  • Duplicated block (10 lines × 2) (android/guava/src/com/google/common/collect/Maps.java)
  • Duplicated block (10 lines × 2) (android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java)
  • Duplicated block (11 lines × 2) (android/guava/src/com/google/common/collect/Maps.java)
  • Duplicated block (13 lines × 2) (android/guava/src/com/google/common/base/Strings.java)
  • Duplicated block (13 lines × 2) (android/guava/src/com/google/common/collect/Maps.java)
  • Duplicated block (13 lines × 2) (android/guava/src/com/google/common/collect/Synchronized.java)
  • Duplicated block (14 lines × 2) (android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java)
  • Duplicated block (14 lines × 2) (android/guava/src/com/google/common/base/Strings.java)
  • Duplicated block (14 lines × 2) (android/guava/src/com/google/common/collect/FilteredEntryMultimap.java)
  • Duplicated block (14 lines × 2) (android/guava/src/com/google/common/collect/Maps.java)
  • Duplicated block (14 lines × 2) (android/guava/src/com/google/common/collect/StandardTable.java)
  • Duplicated block (16 lines × 2) (android/guava/src/com/google/common/collect/LinkedHashMultimap.java)
  • Duplicated block (16 lines × 4) (android/guava/src/com/google/common/collect/Maps.java)
  • Duplicated block (19 lines × 16) (android/guava/src/com/google/common/primitives/Booleans.java)
  • Duplicated block (190 lines × 2) (android/guava/src/com/google/common/escape/Escapers.java)
  • Duplicated block (22 lines × 2) (android/guava/src/com/google/common/collect/CollectCollectors.java)
  • …and 542 more

Changes since last survey

  • 45 commits — 38 feature/other, 7 fixes

By area

  • android/guava — 25 commits
  • android/guava-tests — 10 commits
  • (root) — 4 commits
  • guava-tests/test — 2 commits
  • guava/src — 2 commits
  • .github/dependabot.yml — 1 commit
  • .github/workflows — 1 commit

Notable commits

  • fix: Add some tests to catch bugs I almost introduced in HashBiMap.
  • fix: Assorted fixes and cleanups for LinkedHashMultimap (and MultimapForEachTester):
  • fix: Fix Graphs.hasCycle missing cycles in undirected graphs.
  • fix: Fix bad setValue concurrent-modification behavior in the mainline HashBiMap.
  • fix: Fix bugs in the backport copy of HashBiMap:
  • fix: Fix rotating by Integer.MIN_VALUE.
  • fix: Tweak Graphs performance, and further improve GraphPropertiesTest in light of the recently detected bug.
  • change: Add conditional support for OSS Exit Gate publishing.
  • change: Add ranged indexOf(array, target, fromIndex, toIndex) and lastIndexOf(array, target, fromIndex, toIndex) overloads to Bytes, Chars, Shorts, Ints, Longs, Floats, Doubles, and Booleans.
  • change: Add ranged indexOf(array, target, fromIndex, toIndex) overloads that search for a sub-array target within [fromIndex, toIndex) to Bytes, Chars, Shorts, Ints, Longs, Floats, Doubles, and Booleans, and delegate indexOf(array, target) to indexOf(array, target, 0, array.length).
  • change: Add test demonstrating that Graphs.hasCycle can miss cycles in undirected graphs.
  • change: Add test for AbstractFuture.toString() on a diamond graph of pending futures.
  • change: Advertise Future Converter more.
  • change: Bump Error Prone, and remove ReferenceEquality suppressions for Thread comparisons.
  • change: Bump cooldown period to 14 days.
  • change: Bump deps and plugins.
  • change: Bump the github-actions group with 4 updates
  • change: Check the predicate on setValue calls from filtered Multimap entries.
  • change: Clarify that some Ordering APIs do not have replacements.
  • change: Clean up minor post-removal and rehash details in HashBiMap and LinkedHashMultimap:
  • …and 25 more

Architecture

  • Containers 0 added · 0 removed · contexts 4 added · 4 removed · edges 4 added · 4 removed

Added bounded contexts (4)

  • android/guava
  • android/guava-testlib
  • guava
  • guava-testlib

Removed bounded contexts (4)

  • android/guava
  • android/guava-testlib
  • guava
  • guava-testlib

Added dependency edges (4)

  • android/guava → guava
  • android/guava-testlib → guava
  • android/guava-testlib → guava-testlib
  • guava-testlib → guava

Removed dependency edges (was a dependency, now gone) (4)

  • android/guava → guava
  • android/guava-testlib → guava
  • android/guava-testlib → guava-testlib
  • guava-testlib → guava

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

google/guava was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 022257016d63cfac448410effc7b156629a1f620 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-f3449e6eb431.