diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 40fe496fd..5f20b8955 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -69,6 +69,7 @@ [StepSecurity] Harden GitHub builds #228, #234. Fixes grammar and typos in Javadoc #233. Deprecate OpenSslJna.OpenSslJna(). + Deprecate Crypto.Crypto(). Bump commons-parent from 56 to 64 #225. Bump com.sun.xml.bind:jaxb-impl from 2.3.7 to 2.3.8. diff --git a/src/main/java/org/apache/commons/crypto/Crypto.java b/src/main/java/org/apache/commons/crypto/Crypto.java index 4963b5525..a7f06e173 100644 --- a/src/main/java/org/apache/commons/crypto/Crypto.java +++ b/src/main/java/org/apache/commons/crypto/Crypto.java @@ -55,7 +55,7 @@ private static Properties getComponentProperties() { return versionData; } } - + /** * The prefix of all crypto configuration keys. */ @@ -183,4 +183,14 @@ public static void main(final String[] args) throws Exception { } } + /** + * Constructs a new instance. + * + * @deprecated Will be private in the next major release. + */ + @Deprecated + public Crypto() { + // empty + } + }