Pārlūkot izejas kodu

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 pirms 5 gadiem
vecāks
revīzija
e5217400de

+ 2
- 2
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt