guava
guava copied to clipboard
Google core libraries for Java
While I was investigating #6478, I encountered the following case that might be a bug: ```java MutableGraph graph = GraphBuilder.undirected().build(); graph.putEdge(1, 2); Set n1IncidentEdges = graph.incidentEdges(1); assertThat(n1IncidentEdges).hasSize(1); graph.removeNode(1); assertThatIllegalArgumentException() .isThrownBy(()...
Guava tests build is failing on windows. PFB the failure snippet from surefire-reports. guava-tests/target/surefire-reports/com.google.common.base.ThrowablesTest.txt:Tests run: 30, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec
Hi, I want you to present my minor improvement for **Iterables** class. In commercial application I am working with I faced a problem that I need to take random element...
Implements the changes proposed in issue #3011 I was not sure in which version this is going to be pulled in - so I left `// TODO` comments at the...
Kotlin's `Deferred` can be crated with `CoroutineStart.LAZY`. I've found unsuspecting conversions to `ListenableFuture` with the `Deferred.asListenableFuture()` extension waiting forever for completion. Calling `Deferred.start()` when converting seems to produce the desired...
Internal change RELNOTES=n/a
The main advantage of Guava `Joiner` over JDKs `Collectors.joining(...)` or `StringJoiner` that it can handle arbitrary objects and has a convenient builder api to express e.g. `.useForNull(nullText)`. Thus allow the...
After a conversation with @jensdietrich in [an Error Prone issue](https://github.com/google/error-prone/issues/3792), Jens provided us with some data on Guava fields, parameters, and method returns that see null values during the course...
Hi! We have encountered an issue when a Rate limiter has been set up with 1 permits per second, and a ZERO duration. This resulted in a RateLimiter, which gave...