diff --git a/pgpainless-core/src/main/java/org/pgpainless/provider/BouncyCastleProviderFactory.java b/pgpainless-core/src/main/java/org/pgpainless/provider/BouncyCastleProviderFactory.java index 7169238a..535b9b8e 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/provider/BouncyCastleProviderFactory.java +++ b/pgpainless-core/src/main/java/org/pgpainless/provider/BouncyCastleProviderFactory.java @@ -20,8 +20,4 @@ public final class BouncyCastleProviderFactory extends ProviderFactory { return provider; } - @Override - public String _getProviderName() { - return _getProvider().getName(); - } } diff --git a/pgpainless-core/src/main/java/org/pgpainless/provider/ProviderFactory.java b/pgpainless-core/src/main/java/org/pgpainless/provider/ProviderFactory.java index 5942b0d5..1859d342 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/provider/ProviderFactory.java +++ b/pgpainless-core/src/main/java/org/pgpainless/provider/ProviderFactory.java @@ -19,7 +19,10 @@ public abstract class ProviderFactory { private static ProviderFactory FACTORY; protected abstract Provider _getProvider(); - protected abstract String _getProviderName(); + + protected String _getProviderName() { + return _getProvider().getName(); + } public static void setFactory(ProviderFactory factory) { ProviderFactory.FACTORY = factory; diff --git a/pgpainless-core/src/test/java/org/pgpainless/provider/ProviderFactoryTest.java b/pgpainless-core/src/test/java/org/pgpainless/provider/ProviderFactoryTest.java index 60c0bc19..a859008a 100644 --- a/pgpainless-core/src/test/java/org/pgpainless/provider/ProviderFactoryTest.java +++ b/pgpainless-core/src/test/java/org/pgpainless/provider/ProviderFactoryTest.java @@ -25,10 +25,6 @@ public class ProviderFactoryTest { return provider; } - @Override - protected String _getProviderName() { - return provider.getName(); - } }; @Test