Skip to content

Commit

Permalink
#391 Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrluck committed Nov 4, 2017
1 parent b376442 commit 5b098ac
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/main/java/javax/cache/event/CacheEntryEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ public final Cache getSource() {
* <p>
* The value will be available
* for {@link CacheEntryCreatedListener} and {@link CacheEntryUpdatedListener}.
* Returns the same value as {@link #getOldValue()} for {@link CacheEntryExpiredListener}
* and {@link CacheEntryRemovedListener}. Cache clients that need to maintain compatibility with
* JSR107 version 1.0 cache implementations, need to use this method for retrieving the expired
* or removed value. When using cache implementations compatible with JSR107 version 1.1,
* clients should prefer the method {@link #getOldValue()}.
* Returns the same value as {@link #getOldValue()} for
* {@link CacheEntryExpiredListener} and {@link CacheEntryRemovedListener}.
* Cache clients that need to maintain compatibility with JSR107 version 1.0
* cache implementations, need to use this method for retrieving the expired
* or removed value. When using cache implementations compatible with JSR107
* version 1.1, clients should prefer the method {@link #getOldValue()}.
*
* @return the value corresponding to this entry
* @see #getOldValue()
Expand All @@ -70,7 +71,9 @@ public final Cache getSource() {
public abstract V getValue();

/**
* Returns the previous value that existed for entry in the cache before modification or removal.
* Returns the previous value that existed for entry in the cache before
* modification or removal.
*
* The old value will be available
* for {@link CacheEntryUpdatedListener}, {@link CacheEntryExpiredListener}
* and {@link CacheEntryRemovedListener}
Expand All @@ -79,8 +82,8 @@ public final Cache getSource() {
* {@link CacheEntryExpiredListener} and {@link CacheEntryRemovedListener}
* if {@link CacheEntryListenerConfiguration#isOldValueRequired()} is false.
*
* @return the previous value or <code>null</code> if there was no previous value or
* the previous value is not available
* @return the previous value or <code>null</code> if there was no previous
* value or the previous value is not available
*/
public abstract V getOldValue();

Expand Down

0 comments on commit 5b098ac

Please sign in to comment.