commit | c2f9acdc32a5c675a1a307dc5e4e5ba93be5a7f9 | [log] [tgz] |
---|---|---|
author | Matthias Sohn <matthias.sohn@sap.com> | Mon Jun 07 00:25:32 2021 +0200 |
committer | Matthias Sohn <matthias.sohn@sap.com> | Mon Jun 07 00:25:32 2021 +0200 |
tree | a89388aa0bbb4b600f146bc3b356b7942652683c | |
parent | d79b6b665f51c1095107feef83f9d60753d87709 [diff] |
[errorprone] Make operator precedence explicit in OpenSshConfigFile This fixes the errorprone warning OperatorPrecedence. Change-Id: I4c7dafa5ac8e1d58fa15cf91fe1b3cf3f182d536
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 bf93d77..6fbb4c5 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 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();