From e5217400de0e07266616775491d26ec16f747a64 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Sat, 8 Jun 2019 14:54:19 +0900 Subject: [PATCH] FS_POSIX: Fix reference comparison of Boolean.FALSE Change-Id: Ic205d017b365ea85983d0b0d9d033fcf7e6bf6ab Signed-off-by: David Pursehouse --- org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java | 4 ++-- 1 file 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); -- 2.39.5