diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2019-10-25 21:55:33 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2019-10-25 21:55:33 -0400 |
commit | 66aa2cc30c0cb20c8634e24baae872647d78e1d8 (patch) | |
tree | c3041c9249971c06fbb548cef794485d6c3452fc | |
parent | 271051ef066faf3559a8831dcdc3b347285c1049 (diff) | |
parent | 6ba8f37ab75fef316a3df74689162e41ea95d51d (diff) | |
download | jgit-66aa2cc30c0cb20c8634e24baae872647d78e1d8.tar.gz jgit-66aa2cc30c0cb20c8634e24baae872647d78e1d8.zip |
Merge "[errorprone] Add parenthesis to clarify operator precedence"
-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(); |