diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 17dbffd..ac49a77 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
- java: [ '1.8', '11', '17' ]
+ java: [ '11', '17' ]
name: Java ${{ matrix.java }} NoCommons
steps:
diff --git a/pom.xml b/pom.xml
index 32ac5a1..9f8acaf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -242,8 +242,8 @@
- 1.8
- 1.8
+ 11
+ 11
UTF-8
diff --git a/src/test/java/no/bekk/bekkopen/mail/MailValidatorTest.java b/src/test/java/no/bekk/bekkopen/mail/MailValidatorTest.java
index c54c6e5..89dba42 100644
--- a/src/test/java/no/bekk/bekkopen/mail/MailValidatorTest.java
+++ b/src/test/java/no/bekk/bekkopen/mail/MailValidatorTest.java
@@ -4,7 +4,6 @@
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
-import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@@ -22,7 +21,7 @@
public class MailValidatorTest {
private static final Poststed HAMAR = new Poststed("Hamar");
- private static final List postInfo = Arrays.asList(
+ private static final List postInfo = List.of(
new PostInfo(
new Postnummer("4633"),
new Poststed("KRISTIANSAND S"),