Skip to content

Commit

Permalink
java8 method ref
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergibb committed Feb 24, 2015
1 parent a88d2b0 commit e0db270
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions myfeed-core/src/main/java/myfeed/ObservableAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
public class ObservableAdapter<T> extends DeferredResult<T> {

public ObservableAdapter(Observable<T> observable) {
observable.subscribe(result -> setResult(result),
throwable -> setErrorResult(throwable));
observable.subscribe(this::setResult, this::setErrorResult);
}
}

0 comments on commit e0db270

Please sign in to comment.