Skip to content

Commit

Permalink
use correct generic type on AbstractDistributedValue.onChange
Browse files Browse the repository at this point in the history
  • Loading branch information
josh gruenberg committed Apr 13, 2017
1 parent 8c82b4e commit 222a73c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -54,7 +54,7 @@ protected AbstractDistributedValue(CopycatClient client, Properties options) {
* @param callback The callback to be called when the value changes. * @param callback The callback to be called when the value changes.
* @return The change event. * @return The change event.
*/ */
public synchronized CompletableFuture<Listener<ChangeEvent<T>>> onChange(Consumer<ChangeEvent<T>> callback) { public synchronized CompletableFuture<Listener<ChangeEvent<U>>> onChange(Consumer<ChangeEvent<U>> callback) {
return onEvent(Events.CHANGE, callback); return onEvent(Events.CHANGE, callback);
} }


Expand Down

0 comments on commit 222a73c

Please sign in to comment.