Merge pull request #53 from kemitix/test-on-java-10

[jenkins] Test with Java 10
This commit is contained in:
Paul Campbell 2018-10-04 08:12:03 +01:00 committed by GitHub
commit d7512be042
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
final String publicRepo = 'https://github.com/kemitix/' final String publicRepo = 'https://github.com/kemitix/'
final String mvn = "mvn --batch-mode --update-snapshots --errors" final String mvn = "mvn --batch-mode --update-snapshots --errors"
final dependenciesSupportJDK = 9 final dependenciesSupportJDK = 10
pipeline { pipeline {
agent any agent any

View file

@ -99,7 +99,7 @@ public interface Result<T> extends Functor<T, Result<?>> {
@SuppressWarnings("illegalcatch") @SuppressWarnings("illegalcatch")
public static <T> Maybe<T> toMaybe(final Result<T> result) { public static <T> Maybe<T> toMaybe(final Result<T> result) {
try { try {
return Maybe.just(result.orElseThrow(Exception.class)); return Maybe.just(result.orElseThrow());
} catch (final Throwable throwable) { } catch (final Throwable throwable) {
return Maybe.nothing(); return Maybe.nothing();
} }