Merge pull request #53 from kemitix/test-on-java-10
[jenkins] Test with Java 10
This commit is contained in:
commit
d7512be042
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
final String publicRepo = 'https://github.com/kemitix/'
|
||||
final String mvn = "mvn --batch-mode --update-snapshots --errors"
|
||||
final dependenciesSupportJDK = 9
|
||||
final dependenciesSupportJDK = 10
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
|
|
|
@ -99,7 +99,7 @@ public interface Result<T> extends Functor<T, Result<?>> {
|
|||
@SuppressWarnings("illegalcatch")
|
||||
public static <T> Maybe<T> toMaybe(final Result<T> result) {
|
||||
try {
|
||||
return Maybe.just(result.orElseThrow(Exception.class));
|
||||
return Maybe.just(result.orElseThrow());
|
||||
} catch (final Throwable throwable) {
|
||||
return Maybe.nothing();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue