aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2021-04-23 16:52:54 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2021-06-01 11:16:59 -0400
commita14bc9bb6935dc0784ba2277751b64fb735a2a23 (patch)
tree6a8884c268c725b76d49a56708a9134ab8814b95 /org.eclipse.jgit/src/org/eclipse
parent4760628d7389130f18c4710706a758b30b158ff0 (diff)
downloadjgit-a14bc9bb6935dc0784ba2277751b64fb735a2a23.tar.gz
jgit-a14bc9bb6935dc0784ba2277751b64fb735a2a23.zip
Clarify operator precedence to fix errorprone error
Errorprone raised error OperatorPrecedence in bazel build. Change-Id: Ibab601e67d4d5cafe9a7d900c78b0d432181a073 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFile.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFile.java
index bf93d77f7e..6fbb4c5a07 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFile.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFile.java
@@ -881,8 +881,8 @@ public class OpenSshConfigFile implements SshConfigStore {
public String substitute(String input, String allowed,
boolean withEnv) {
if (input == null || input.length() <= 1
- || input.indexOf('%') < 0
- && (!withEnv || input.indexOf("${") < 0)) { //$NON-NLS-1$
+ || (input.indexOf('%') < 0
+ && (!withEnv || input.indexOf("${") < 0))) { //$NON-NLS-1$
return input;
}
StringBuilder builder = new StringBuilder();