Skip to content

Commit

Permalink
Deprecate Crypto.Crypto()
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 21, 2023
1 parent 8258093 commit 5707b28
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<action dev="ggregory" type="fix" due-to="step-security-bot, Gary Gregory">[StepSecurity] Harden GitHub builds #228, #234.</action>
<action dev="ggregory" type="fix" due-to="Martin Wiesner">Fixes grammar and typos in Javadoc #233.</action>
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate OpenSslJna.OpenSslJna().</action>
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate Crypto.Crypto().</action>
<!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Dependabot, Gary Gregory">Bump commons-parent from 56 to 64 #225.</action>
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump com.sun.xml.bind:jaxb-impl from 2.3.7 to 2.3.8.</action>
Expand Down
12 changes: 11 additions & 1 deletion src/main/java/org/apache/commons/crypto/Crypto.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private static Properties getComponentProperties() {
return versionData;
}
}

/**
* The prefix of all crypto configuration keys.
*/
Expand Down Expand Up @@ -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
}

}

0 comments on commit 5707b28

Please sign in to comment.