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>
This commit is contained in:
Matthias Sohn 2021-04-23 16:52:54 +02:00
parent 4760628d73
commit a14bc9bb69
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();