FS_POSIX: Fix reference comparison of Boolean.FALSE
Change-Id: Ic205d017b365ea85983d0b0d9d033fcf7e6bf6ab Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
d8429d27f7
commit
e5217400de
|
@ -400,7 +400,7 @@ public boolean createNewFile(File lock) throws IOException {
|
|||
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 LockToken createNewFileAtomic(File file) throws IOException {
|
|||
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…
Reference in New Issue