Skip to content

Commit

Permalink
Further to #391, added further clarification about the optionality of…
Browse files Browse the repository at this point in the history
… returning oldValue when isOldValue is false.
  • Loading branch information
gregrluck committed Nov 4, 2017
1 parent f430ec8 commit b376442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/javax/cache/event/CacheEntryEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ public final Cache getSource() {
* for {@link CacheEntryUpdatedListener}, {@link CacheEntryExpiredListener}
* and {@link CacheEntryRemovedListener}
* if {@link CacheEntryListenerConfiguration#isOldValueRequired()} is true.
* The old value may be available for {@link CacheEntryUpdatedListener},
* The old value <b>may</b> be available for {@link CacheEntryUpdatedListener},
* {@link CacheEntryExpiredListener} and {@link CacheEntryRemovedListener}
* if {@link CacheEntryListenerConfiguration#isOldValueRequired()} is false.
*
* @return true if the old value is available
* @return true if the old value is definitely available
*/
public abstract boolean isOldValueAvailable();

Expand Down

0 comments on commit b376442

Please sign in to comment.