summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2019-06-08 14:54:19 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2019-06-11 09:22:17 +0900
commite5217400de0e07266616775491d26ec16f747a64 (patch)
treec2ccb4483439808150fb081252cc952114a46ce9
parentd8429d27f7867ad400112584b5581ed741e1c3ec (diff)
downloadjgit-e5217400de0e07266616775491d26ec16f747a64.tar.gz
jgit-e5217400de0e07266616775491d26ec16f747a64.zip
FS_POSIX: Fix reference comparison of Boolean.FALSE
Change-Id: Ic205d017b365ea85983d0b0d9d033fcf7e6bf6ab Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
index 588855b1f8..faef9fd0f4 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
@@ -400,7 +400,7 @@ public class FS_POSIX extends FS {
try {
Boolean canLink = CAN_HARD_LINK.computeIfAbsent(store,
s -> Boolean.TRUE);
- if (canLink == Boolean.FALSE) {
+ if (Boolean.FALSE.equals(canLink)) {
return true;
}
link = Files.createLink(
@@ -466,7 +466,7 @@ public class FS_POSIX extends FS {
try {
Boolean canLink = CAN_HARD_LINK.computeIfAbsent(store,
s -> Boolean.TRUE);
- if (canLink == Boolean.FALSE) {
+ if (Boolean.FALSE.equals(canLink)) {
return token(true, null);
}
link = Files.createLink(Paths.get(uniqueLinkPath(file)), path);