WorkingTreeIterator: Add NON-NLS suppressions
Change-Id: I369b8f68912134fc3880c162e9a2c5a1669bb4ac Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
3e3554c9eb
commit
6ea21b454c
|
@ -1487,7 +1487,7 @@ private boolean isDirectoryIgnored(String pathRel, String pathAbs)
|
||||||
|
|
||||||
final IgnoreNode ignoreNode = getIgnoreNode();
|
final IgnoreNode ignoreNode = getIgnoreNode();
|
||||||
for (String path = pathRel; ignoreNode != null
|
for (String path = pathRel; ignoreNode != null
|
||||||
&& !"".equals(path); path = getParentPath(path)) {
|
&& !"".equals(path); path = getParentPath(path)) { //$NON-NLS-1$
|
||||||
ignored = ignoreNode.checkIgnored(path, true);
|
ignored = ignoreNode.checkIgnored(path, true);
|
||||||
if (ignored != null) {
|
if (ignored != null) {
|
||||||
state.directoryToIgnored.put(pathAbs, ignored);
|
state.directoryToIgnored.put(pathAbs, ignored);
|
||||||
|
@ -1515,10 +1515,10 @@ private static String getParentPath(String path) {
|
||||||
if (slashIndex > 0) {
|
if (slashIndex > 0) {
|
||||||
return path.substring(path.charAt(0) == '/' ? 1 : 0, slashIndex);
|
return path.substring(path.charAt(0) == '/' ? 1 : 0, slashIndex);
|
||||||
}
|
}
|
||||||
return path.length() > 0 ? "" : null;
|
return path.length() > 0 ? "" : null; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String concatPath(String p1, String p2) {
|
private static String concatPath(String p1, String p2) {
|
||||||
return p1 + (p1.length() > 0 && p2.length() > 0 ? "/" : "") + p2;
|
return p1 + (p1.length() > 0 && p2.length() > 0 ? "/" : "") + p2; //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue