This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-crypto.git
The following commit(s) were added to refs/heads/master by this push: new 55155fb6 Inline single-use local variable 55155fb6 is described below commit 55155fb6bce89067e42e11b867cec6d9475d1ab4 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Jan 25 21:34:38 2024 -0500 Inline single-use local variable --- .../java/org/apache/commons/crypto/random/CryptoRandomFactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java b/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java index 615c2ae8..7ddecacb 100644 --- a/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java +++ b/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java @@ -168,8 +168,7 @@ public class CryptoRandomFactory { * @throws GeneralSecurityException if cannot create the {@link CryptoRandom} class */ public static CryptoRandom getCryptoRandom() throws GeneralSecurityException { - final Properties properties = new Properties(); - return getCryptoRandom(properties); + return getCryptoRandom(new Properties()); } /**