Browse Source

FS_POSIX: Fix reference comparison of Boolean.FALSE

Change-Id: Ic205d017b365ea85983d0b0d9d033fcf7e6bf6ab
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
tags/v5.4.0.201906121030-r
David Pursehouse 5 years ago
parent
commit
e5217400de
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java

+ 2
- 2
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java View File

@@ -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);

Loading…
Cancel
Save