Fix warnings about boxing/unboxing Boolean

Change-Id: I9d81d510282e9181267750fe3f9c571c35b61407
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
David Pursehouse 2018-02-25 17:35:00 +09:00
parent e8c69fa5fd
commit c9e3921fbb
2 changed files with 6 additions and 4 deletions

View File

@ -150,7 +150,8 @@ public MatchResult isIgnored(String entryPath, boolean isDirectory) {
return MatchResult.CHECK_PARENT;
}
return result ? MatchResult.IGNORED : MatchResult.NOT_IGNORED;
return result.booleanValue() ? MatchResult.IGNORED
: MatchResult.NOT_IGNORED;
}
/**
@ -178,7 +179,8 @@ public MatchResult isIgnored(String entryPath, boolean isDirectory,
: MatchResult.CHECK_PARENT;
}
return result ? MatchResult.IGNORED : MatchResult.NOT_IGNORED;
return result.booleanValue() ? MatchResult.IGNORED
: MatchResult.NOT_IGNORED;
}
/**

View File

@ -1476,7 +1476,7 @@ private boolean isDirectoryIgnored(String pathRel, String pathAbs)
Boolean ignored = state.directoryToIgnored.get(pathAbs);
if (ignored != null) {
return ignored;
return ignored.booleanValue();
}
final String parentRel = getParentPath(pathRel);
@ -1491,7 +1491,7 @@ private boolean isDirectoryIgnored(String pathRel, String pathAbs)
ignored = node.checkIgnored(p, true);
if (ignored != null) {
state.directoryToIgnored.put(pathAbs, ignored);
return ignored;
return ignored.booleanValue();
}
}