Skip to content

Commit

Permalink
Fix up JavaDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Oct 31, 2017
1 parent 170d047 commit 74a3dc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,9 @@ interface VarExpiration<K, V> {

/**
* Associates the {@code value} with the {@code key} in this cache if the specified key is not
* already associated with a value and returns null, else returns the current value. This method
* differs from {@link Map#putIfAbsent} by substituting the configured {@link Expiry} with the
* specified write duration, has no effect on the duration if the entry was present, and does
* not return the a value.
* already associated with a value. This method differs from {@link Map#putIfAbsent} by
* substituting the configured {@link Expiry} with the specified write duration, has no effect
* on the duration if the entry was present, and returns the success rather than a value.
*
* @param key the key with which the specified value is to be associated
* @param value value to be associated with the specified key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public void putIfAbsent_present(Cache<Integer, Integer> cache, CacheContext cont
assertThat(cache.estimatedSize(), is(0L));
}

/* ---------------- Policy: putIfAbsent -------------- */
/* ---------------- Policy: put -------------- */

@CheckNoWriter @CheckNoStats
@Test(dataProvider = "caches", expectedExceptions = NullPointerException.class)
Expand Down

0 comments on commit 74a3dc3

Please sign in to comment.