diff options
author | David Ostrovsky <david@ostrovsky.org> | 2020-10-02 18:49:21 +0200 |
---|---|---|
committer | David Ostrovsky <david@ostrovsky.org> | 2020-10-02 18:52:10 +0200 |
commit | f3bb71206c4b378accd94d8e3ff919767de42936 (patch) | |
tree | 68ea78a03af1ba2281f6dcc914700191117df48c | |
parent | dcc6c8a261415bd53490734d1e36dcb8a2d69404 (diff) | |
download | jgit-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.java | 2 |
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; } |