From 77c6511e6ab054e8447a83b5c3d9c47c56778837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B8ydahl?= Date: Thu, 5 Jan 2023 16:07:55 +0100 Subject: [PATCH 1/3] Move away from EOL java 8 and use Java 11. --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From e2e5157c7d7ccb71945c6d72c7526a87a828c7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B8ydahl?= Date: Thu, 5 Jan 2023 16:15:12 +0100 Subject: [PATCH 2/3] Use List.of() --- src/test/java/no/bekk/bekkopen/mail/MailValidatorTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"), From 252df292aed3d479c22987899c8ca858a296299a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B8ydahl?= Date: Thu, 5 Jan 2023 16:35:41 +0100 Subject: [PATCH 3/3] Remove Java8 from Github Actions --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: