Polish ternary expressions

Consistently format ternary expressions and always favor `!=` as the
the check.
This commit is contained in:
Phillip Webb
2018-05-03 13:08:20 -07:00
parent bbf94c22da
commit 41efea51a7
128 changed files with 285 additions and 257 deletions

View File

@@ -130,7 +130,7 @@ public class SourceOptions {
}
private String asString(Object arg) {
return (arg == null ? null : String.valueOf(arg));
return (arg != null ? String.valueOf(arg) : null);
}
public List<String> getSources() {

View File

@@ -154,7 +154,7 @@ public class CliTester implements TestRule {
}
}
else {
sources[i] = new File(arg).isAbsolute() ? arg : this.prefix + arg;
sources[i] = (new File(arg).isAbsolute() ? arg : this.prefix + arg);
}
}
return sources;