From ea908b73f1aac1fc724606cee9e5f00fd14e13f2 Mon Sep 17 00:00:00 2001 From: Lukas Jungmann Date: Tue, 2 Nov 2021 15:58:23 +0100 Subject: [PATCH] Integrate activation-API 2.1.0-RC2 Signed-off-by: Lukas Jungmann --- api/pom.xml | 13 ++++++++++++- .../main/java/jakarta/mail/util/FactoryFinder.java | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/api/pom.xml b/api/pom.xml index 38524f23..1fd07588 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -86,7 +86,12 @@ jakarta.activation jakarta.activation-api - 2.1.0-RC1 + 2.1.0-RC2 + + + org.eclipse.angus + angus-activation + 1.0.0-M1 junit @@ -106,6 +111,11 @@ junit test + + org.eclipse.angus + angus-activation + test + @@ -383,6 +393,7 @@ maven-javadoc-plugin 11 + true false true true diff --git a/api/src/main/java/jakarta/mail/util/FactoryFinder.java b/api/src/main/java/jakarta/mail/util/FactoryFinder.java index 55eb6e72..7b90facd 100644 --- a/api/src/main/java/jakarta/mail/util/FactoryFinder.java +++ b/api/src/main/java/jakarta/mail/util/FactoryFinder.java @@ -64,6 +64,7 @@ static T find(Class factoryClass) throws RuntimeException { throw new IllegalStateException("Not provider of " + factoryClass.getName() + " was found"); } + @SuppressWarnings({"unchecked"}) private static T newInstance(String className) throws RuntimeException { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); checkPackageAccess(className);