diff --git a/.travis.yml b/.travis.yml
index ed39cc9bee..8f4cc1dc76 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,7 @@
language: java
jdk:
- oraclejdk8
+ - oraclejdk9
env:
global:
- secure: HU0QOLEDkYHcjX+PkicGGQ5g2L1/19V2fH13OSn82DOFlIiWmCfhSI8EG/QoWwPDp/HYQ4DH5Lo+ZEhVz5tgEultItyJ38LZJl/YYOzSAiRvTezmDdz+Cdg6SXAwCvgFCTagEJ1ChL5NyenDGDlwPB/drN0HlNNU6igPqNkM8l0=
@@ -9,7 +10,7 @@ env:
- secure: m91QxOLHBRnJzRyphCivL79i90pE/FO4yg8qTOaDuyTqVXBKnHmdARFOxSMZN9Qn3B3e28xxPaazIsJGCuPXiQKSObqzPLeFHUOa3atUJSckEUW623l1313A9iMFOYbqSBAHFHmiuuAJBwN/E2OnG3BcLZV1FRibW6J1qLRLdJw=
before_install:
- sudo apt-get update
- - sudo apt-get install --only-upgrade -y oracle-java8-installer
+ - sudo apt-get install --only-upgrade --assume-yes oracle-java8-installer oracle-java9-installer
- pip install --user codecov
install: true
script: .travis/run-tests.sh
diff --git a/pom.xml b/pom.xml
index 54b63560c8..29788e77d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,6 +32,7 @@ We use these goals frequently to keep the dependencies and plugins up-to-date:
Vavr (formerly called Javaslang) is an object-functional language extension to Java 8+.
vavr
+ vavr-benchmark
vavr-match
vavr-test
@@ -61,28 +62,28 @@ We use these goals frequently to keep the dependencies and plugins up-to-date:
3.8.0
1.0.0
1.8
- 1.18
+ 1.19
4.12
2.8.0
1.4.1
- 1.12
- 3.2.0
+ 3.0.0
+ 3.3.0
3.0.0
2.5.2
- 3.6.0
+ 3.7.0
2.8.2
1.6
- 0.7.8
+ 0.7.9
3.0.2
2.10.4
2.5.3
- 2.3
+ 2.4
2.19.1
3.0.1
1.5.0
1.0-rc-6
3.3.1
- 2.11.7
+ 2.12.2
@@ -253,6 +254,8 @@ We use these goals frequently to keep the dependencies and plugins up-to-date:
-Xlint:all
-Xlint:-processing
+
+ -Xlint:-options
@@ -456,12 +459,6 @@ We use these goals frequently to keep the dependencies and plugins up-to-date:
benchmark
-
- vavr
- vavr-benchmark
- vavr-match
- vavr-test
-
diff --git a/vavr-benchmark/pom.xml b/vavr-benchmark/pom.xml
index 35b7d1cab2..1feaba818d 100644
--- a/vavr-benchmark/pom.xml
+++ b/vavr-benchmark/pom.xml
@@ -89,6 +89,7 @@
**/*Benchmark.java
+ true
diff --git a/vavr/src/main/java/io/vavr/Lazy.java b/vavr/src/main/java/io/vavr/Lazy.java
index 6442b8b90e..07db48e220 100644
--- a/vavr/src/main/java/io/vavr/Lazy.java
+++ b/vavr/src/main/java/io/vavr/Lazy.java
@@ -112,9 +112,10 @@ public static Lazy of(Supplier extends T> supplier) {
* @return A lazy sequence of values.
* @throws NullPointerException if values is null
*/
+ @SuppressWarnings("Convert2MethodRef") // TODO should be fixed in JDK 9 and Idea
public static Lazy> sequence(Iterable extends Lazy extends T>> values) {
Objects.requireNonNull(values, "values is null");
- return Lazy.of(() -> Vector.ofAll(values).map(Lazy::get));
+ return Lazy.of(() -> Vector.ofAll(values).map(lazy -> lazy.get()));
}
/**
diff --git a/vavr/src/test/java/io/vavr/AssertionsExtensions.java b/vavr/src/test/java/io/vavr/AssertionsExtensions.java
index 9872e8d75b..4baba6a29d 100644
--- a/vavr/src/test/java/io/vavr/AssertionsExtensions.java
+++ b/vavr/src/test/java/io/vavr/AssertionsExtensions.java
@@ -40,10 +40,10 @@ public static class ClassAssert {
this.clazz = clazz;
}
+ @SuppressWarnings("deprecation")
public void isNotInstantiable() {
- final Constructor> cons;
try {
- cons = clazz.getDeclaredConstructor();
+ final Constructor> cons = clazz.getDeclaredConstructor();
Assertions.assertThat(cons.isAccessible()).isFalse();
} catch (NoSuchMethodException e) {
throw new AssertionError("no default constructor found");
diff --git a/vavr/src/test/java/io/vavr/MatchTest.java b/vavr/src/test/java/io/vavr/MatchTest.java
index 2998ae0adb..bdd79a9a4f 100644
--- a/vavr/src/test/java/io/vavr/MatchTest.java
+++ b/vavr/src/test/java/io/vavr/MatchTest.java
@@ -19,21 +19,23 @@
*/
package io.vavr;
-import io.vavr.control.Either;
-import io.vavr.match.annotation.Patterns;
import io.vavr.collection.List;
+import io.vavr.control.Either;
import io.vavr.control.Option;
import io.vavr.control.Option.Some;
+import io.vavr.match.annotation.Patterns;
import io.vavr.match.annotation.Unapply;
import org.junit.Test;
import java.math.BigDecimal;
import java.time.Year;
+import java.util.function.BiFunction;
import java.util.function.Predicate;
+import static io.vavr.API.$;
import static io.vavr.API.*;
-import static io.vavr.Patterns.*;
import static io.vavr.MatchTest_DeveloperPatterns.$Developer;
+import static io.vavr.Patterns.*;
import static io.vavr.Predicates.*;
import static org.assertj.core.api.Assertions.assertThat;
@@ -318,9 +320,9 @@ public void shouldDecomposeListOfTuple3() {
@SuppressWarnings("UnnecessaryLocalVariable")
@Test
public void shouldDecomposeListWithNonEmptyTail() {
- final List