[errorprone] Make operator precedence explicit in OpenSshConfigFile
This fixes the errorprone warning OperatorPrecedence. Change-Id: I4c7dafa5ac8e1d58fa15cf91fe1b3cf3f182d536
This commit is contained in:
parent
d79b6b665f
commit
c2f9acdc32
|
@ -881,8 +881,8 @@ public void update(char key, String value) {
|
|||
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();
|
||||
|
|
Loading…
Reference in New Issue