]> source.dussan.org Git - jgit.git/commitdiff
Make precedence more explicit 47/191347/3
authorFabio Ponciroli <ponch78@gmail.com>
Wed, 2 Mar 2022 09:03:51 +0000 (10:03 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 2 Mar 2022 15:24:44 +0000 (16:24 +0100)
Errorprone was failing the build with: "[OperatorPrecedence]. Use
grouping parenthesis to make the operator precedence explicit"

Add parentheses to silence it.

Change-Id: I81f1f249e38fd2543f5412b3501b0179d0759f55

org.eclipse.jgit/src/org/eclipse/jgit/transport/PushConfig.java

index 0de270261e40ae6a0aa8a6cde1b322d078121c6e..c8774d546a76a68b62d75a09f5647d76d34e8738 100644 (file)
@@ -117,7 +117,7 @@ public class PushConfig {
                @Override
                public boolean matchConfigValue(String in) {
                        return toConfigValue().equalsIgnoreCase(in)
-                                       || alias != null && alias.equalsIgnoreCase(in);
+                                       || (alias != null && alias.equalsIgnoreCase(in));
                }
        }