Skip to content

Commit

Permalink
Correct Javadoc for CacheBuilder.weigher.
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 585768216
  • Loading branch information
lowasser authored and Google Java Core Libraries committed Nov 27, 2023
1 parent c4477c0 commit 420e0f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions android/guava/src/com/google/common/cache/CacheBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ public CacheBuilder<K, V> maximumWeight(long maximumWeight) {
*
* @param weigher the weigher to use in calculating the weight of cache entries
* @return this {@code CacheBuilder} instance (for chaining)
* @throws IllegalArgumentException if {@code size} is negative
* @throws IllegalStateException if a maximum size was already set
* @throws IllegalStateException if a weigher was already set or {@link #maximumSize(long)} was
* previously called
* @since 11.0
*/
@GwtIncompatible // To be supported
Expand Down
4 changes: 2 additions & 2 deletions guava/src/com/google/common/cache/CacheBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ public CacheBuilder<K, V> maximumWeight(long maximumWeight) {
*
* @param weigher the weigher to use in calculating the weight of cache entries
* @return this {@code CacheBuilder} instance (for chaining)
* @throws IllegalArgumentException if {@code size} is negative
* @throws IllegalStateException if a maximum size was already set
* @throws IllegalStateException if a weigher was already set or {@link #maximumSize} was
* previously called
* @since 11.0
*/
@GwtIncompatible // To be supported
Expand Down

0 comments on commit 420e0f3

Please sign in to comment.