Fix warnings about boxing/unboxing Boolean
Change-Id: I9d81d510282e9181267750fe3f9c571c35b61407 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
e8c69fa5fd
commit
c9e3921fbb
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue