guava
guava copied to clipboard
Google core libraries for Java
PR to fix issue - https://github.com/google/guava/issues/6866
### 1. What are you trying to do? I am using Guava's bloom filters as part of a persistent file format, i.e. the raw byte array of the bloom filter...
When we upgraded Truth we started getting crashes like this: ``` java.lang.NoSuchMethodError: 'java.util.stream.Collector com.google.common.collect.Sets.toImmutableEnumSet()' at com.android.resources.ResourceType.(ResourceType.java:175) at app.cash.paparazzi.internal.DynamicResourceIdManager$IdProvider.(DynamicResourceIdManager.kt:14) at app.cash.paparazzi.internal.DynamicResourceIdManager.(DynamicResourceIdManager.kt:28) at app.cash.paparazzi.internal.PaparazziCallback.(PaparazziCallback.kt:52) at app.cash.paparazzi.Paparazzi.prepare(Paparazzi.kt:145) at app.cash.paparazzi.Paparazzi$apply$statement$1.evaluate(Paparazzi.kt:116) ``` As @TWiStErRob explains...
Internal change RELNOTES=n/a
Just as the current metadata can detect conflicts with `google-collections`, it could detect conflicts with those other artifacts. For example, I keep forgetting that we ourselves released [`guava-base`](https://repo1.maven.org/maven2/com/google/guava/guava-base/r03/), etc. for...
InetAddress.toString() outputs a string in the format `/`. I have use cases where I need to convert this string back to an Inet4Address or Inet6Address, which I think would be...
Proposal to remove the following Jars from the **runtime classpath** (in Gradle projects): - `checker-qual-*.jar` - `error_prone_annotations-*.jar` - `jsr305-*.jar` Afterwards, they are still transitively visible on the **compile classpath**, which...
We have an Android project with minSdk 29 and target Java 17, which means we can freely use newer APIs and the guava JRE artifact. With the introduction of the...
### 1. What are you trying to do? Please see [JEP-431](https://openjdk.org/jeps/431) for background on what a Sequenced Collection is. The javadoc for ImmutableCollection mentions that most Guava Collections have a...
### Description Ref: https://datatracker.ietf.org/doc/html/rfc8259#section-11 (last paragraph) But see: https://github.com/google/guava/blob/f347fb7a2ddd975e7ab94e0f3f71ab3f0d21f580/guava/src/com/google/common/net/MediaType.java#L492 This type should be deprecated (and users encouraged to use a variant without charset). ### Example ```java MediaType.JSON_UTF_8 is in non-sense...