[errorprone] Make operator precedence explicit in OpenSshConfigFile

This fixes the errorprone warning OperatorPrecedence.

Change-Id: I4c7dafa5ac8e1d58fa15cf91fe1b3cf3f182d536
This commit is contained in:
Matthias Sohn 2021-06-07 00:25:32 +02:00
parent d79b6b665f
commit c2f9acdc32
1 changed files with 2 additions and 2 deletions

View File

@ -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();