[errorprone] Add parenthesis to clarify operator precedence
This fixes OperatorPrecedence error raised by errorprone on FS#findHook. Change-Id: Ia15f61902c7deff7328c1afa066fc53152949bbf Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
6a39da37fe
commit
6ba8f37ab7
|
@ -1787,8 +1787,8 @@ public File findHook(Repository repository, String hookName) {
|
||||||
}
|
}
|
||||||
File hookFile = new File(hookDir, hookName);
|
File hookFile = new File(hookDir, hookName);
|
||||||
if (hookFile.isAbsolute()) {
|
if (hookFile.isAbsolute()) {
|
||||||
if (!hookFile.exists() || FS.DETECTED.supportsExecute()
|
if (!hookFile.exists() || (FS.DETECTED.supportsExecute()
|
||||||
&& !FS.DETECTED.canExecute(hookFile)) {
|
&& !FS.DETECTED.canExecute(hookFile))) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -1803,8 +1803,8 @@ public File findHook(Repository repository, String hookName) {
|
||||||
if (fs == null) {
|
if (fs == null) {
|
||||||
fs = FS.DETECTED;
|
fs = FS.DETECTED;
|
||||||
}
|
}
|
||||||
if (!Files.exists(hookPath) || fs.supportsExecute()
|
if (!Files.exists(hookPath) || (fs.supportsExecute()
|
||||||
&& !fs.canExecute(hookPath.toFile())) {
|
&& !fs.canExecute(hookPath.toFile()))) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
hookFile = hookPath.toFile();
|
hookFile = hookPath.toFile();
|
||||||
|
|
Loading…
Reference in New Issue