aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2020-10-02 18:49:21 +0200
committerDavid Ostrovsky <david@ostrovsky.org>2020-10-02 18:52:10 +0200
commitf3bb71206c4b378accd94d8e3ff919767de42936 (patch)
tree68ea78a03af1ba2281f6dcc914700191117df48c
parentdcc6c8a261415bd53490734d1e36dcb8a2d69404 (diff)
downloadjgit-f3bb71206c4b378accd94d8e3ff919767de42936.tar.gz
jgit-f3bb71206c4b378accd94d8e3ff919767de42936.zip
Fix OperatorPrecedence warning flagged by error prone
Building with Bazel is failing with this error message: HttpSupport.java:480: error: [OperatorPrecedence] Use grouping parenthesis to make the operator precedence explicit if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') { ^ (see https://errorprone.info/bugpattern/OperatorPrecedence) Did you mean 'if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) {'? Change-Id: I96089d3158d06ba981cfdf2b03865261b328de23
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java
index 03672f8ba5..04b3eab504 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java
@@ -477,7 +477,7 @@ public class HttpSupport {
i++;
break;
default:
- if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') {
+ if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) {
i++;
break;
}