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:
David Pursehouse 2019-06-08 14:54:19 +09:00
parent d8429d27f7
commit e5217400de
1 changed files with 2 additions and 2 deletions

View File

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