You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2022/06/26 20:32:10 UTC

[commons-crypto] branch master updated: Useless parentheses (PMD)

This is an automated email from the ASF dual-hosted git repository.

sebb 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 1a52e1b  Useless parentheses (PMD)
1a52e1b is described below

commit 1a52e1b74600f3f2c54ad6579ad4f5f22e32790a
Author: Sebb <se...@apache.org>
AuthorDate: Sun Jun 26 21:32:04 2022 +0100

    Useless parentheses (PMD)
---
 src/main/java/org/apache/commons/crypto/Crypto.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/crypto/Crypto.java b/src/main/java/org/apache/commons/crypto/Crypto.java
index aa0edb0..f664dd1 100644
--- a/src/main/java/org/apache/commons/crypto/Crypto.java
+++ b/src/main/java/org/apache/commons/crypto/Crypto.java
@@ -150,7 +150,7 @@ public final class Crypto {
      * @throws Exception if getCryptoRandom or getCryptoCipher get error.
      */
     public static void main(final String[] args) throws Exception {
-        quiet = (args.length ==1 && args[0].equals("-q"));
+        quiet = args.length ==1 && args[0].equals("-q");
         info("%s %s", getComponentName(), getComponentVersion());
         if (isNativeCodeLoaded()) {
             info("Native code loaded OK: %s", OpenSslInfoNative.NativeVersion());