diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2019-10-25 15:15:03 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-10-25 15:27:36 +0200 |
commit | 6ba8f37ab75fef316a3df74689162e41ea95d51d (patch) | |
tree | a07111d384caf780c4dc096ad5571d2aa6297872 | |
parent | 6a39da37fefd036929df9e63bf42875abd028b1f (diff) | |
download | jgit-6ba8f37ab75fef316a3df74689162e41ea95d51d.tar.gz jgit-6ba8f37ab75fef316a3df74689162e41ea95d51d.zip |
[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>
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java index 68e19ce722..b0c6f96411 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java @@ -1787,8 +1787,8 @@ public abstract class FS { } File hookFile = new File(hookDir, hookName); if (hookFile.isAbsolute()) { - if (!hookFile.exists() || FS.DETECTED.supportsExecute() - && !FS.DETECTED.canExecute(hookFile)) { + if (!hookFile.exists() || (FS.DETECTED.supportsExecute() + && !FS.DETECTED.canExecute(hookFile))) { return null; } } else { @@ -1803,8 +1803,8 @@ public abstract class FS { if (fs == null) { fs = FS.DETECTED; } - if (!Files.exists(hookPath) || fs.supportsExecute() - && !fs.canExecute(hookPath.toFile())) { + if (!Files.exists(hookPath) || (fs.supportsExecute() + && !fs.canExecute(hookPath.toFile()))) { return null; } hookFile = hookPath.toFile(); |