Skip to content

Commit

Permalink
Reakt 2.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
MammatusPlatypus committed Apr 15, 2016
1 parent beb2aad commit 2f8456e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'io.advantageous.reakt'
version '2.1.0-SNAPSHOT'
version '2.1.0.RELEASE'

apply plugin: 'java'
apply plugin: 'maven'
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/advantageous/reakt/impl/ResultImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.advantageous.reakt.Expected;
import io.advantageous.reakt.Result;

import java.util.function.Consumer;

public class ResultImpl<T> implements Result<T> {
Expand Down Expand Up @@ -78,7 +79,7 @@ public T get() {

@Override
public T orElse(T other) {
return success() ? (T)object : other;
return success() ? (T) object : other;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ protected void doThenValue(final Result<T> result) {
public <U> Promise<U> thenMap(Function<? super T, ? extends U> mapper) {
throw new UnsupportedOperationException("then(..) not supported for final promise");
}

@Override
public T orElse(T other) {
if (!complete()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,6 @@ public void testError() throws Exception {
.catchError(throwable -> error[0] = true);



testErrorWithPromise(testService, employee, error, promise);
}

Expand Down

0 comments on commit 2f8456e

Please sign in to comment.