Skip to content

Commit

Permalink
Corrected invoke sigs
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrluck committed Mar 16, 2015
1 parent a6fee0f commit 89939cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/javax/cache/Cache.java
Original file line number Diff line number Diff line change
Expand Up @@ -992,11 +992,10 @@ <T> T invoke(K key,
* must wrap any {@link Exception} thrown
* wrapped in an {@link EntryProcessorException}.
* @see EntryProcessor
* todo return type should be void
*/
<T> T invoke(K key,
<T> void invoke(K key,
EntryProcessor<K, V, T> entryProcessor,
Collector<T> collector,
Collector<? super T> collector,

This comment has been minimized.

Copy link
@chrisdennis

chrisdennis Mar 16, 2015

Member

Do we want to consider using similar bounds on the EntryProcessor generic types.

Object... arguments) throws EntryProcessorException;

/**
Expand Down Expand Up @@ -1075,10 +1074,11 @@ <T> Map<K, EntryProcessorResult<T>> invokeAll(Set<? extends K> keys,
* types are incompatible with those that have been
* configured for the {@link Cache}
* @see EntryProcessor
* @since 1.1
*/
<T> void invokeAll(Set<? extends K> keys,
EntryProcessor<K, V, T> entryProcessor,
Collector<? extends Entry<K, T>> collector,
Collector<? super Entry<K, T>> collector,
Object... arguments);

/**
Expand Down

1 comment on commit 89939cd

@gregrluck
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #312.

Please sign in to comment.