@@ -227,6 +227,7 @@ public final class SelectorUtils {
}
}
if (!match(patDir,(String)strDirs.elementAt(strIdxStart),
if (!match(patDir,(String)strDirs.elementAt(strIdxStart),
isCaseSensitive)) {
isCaseSensitive)) {
patDirs = null; strDirs = null;
return false;
return false;
}
}
patIdxStart++;
patIdxStart++;
@@ -236,6 +237,7 @@ public final class SelectorUtils {
// String is exhausted
// String is exhausted
for (int i = patIdxStart; i <= patIdxEnd; i++) {
for (int i = patIdxStart; i <= patIdxEnd; i++) {
if (!patDirs.elementAt(i).equals("**")) {
if (!patDirs.elementAt(i).equals("**")) {
patDirs = null; strDirs = null;
return false;
return false;
}
}
}
}
@@ -243,6 +245,7 @@ public final class SelectorUtils {
} else {
} else {
if (patIdxStart > patIdxEnd) {
if (patIdxStart > patIdxEnd) {
// String not exhausted, but pattern is. Failure.
// String not exhausted, but pattern is. Failure.
patDirs = null; strDirs = null;
return false;
return false;
}
}
}
}
@@ -255,6 +258,7 @@ public final class SelectorUtils {
}
}
if (!match(patDir,(String)strDirs.elementAt(strIdxEnd),
if (!match(patDir,(String)strDirs.elementAt(strIdxEnd),
isCaseSensitive)) {
isCaseSensitive)) {
patDirs = null; strDirs = null;
return false;
return false;
}
}
patIdxEnd--;
patIdxEnd--;
@@ -264,6 +268,7 @@ public final class SelectorUtils {
// String is exhausted
// String is exhausted
for (int i = patIdxStart; i <= patIdxEnd; i++) {
for (int i = patIdxStart; i <= patIdxEnd; i++) {
if (!patDirs.elementAt(i).equals("**")) {
if (!patDirs.elementAt(i).equals("**")) {
patDirs = null; strDirs = null;
return false;
return false;
}
}
}
}
@@ -303,6 +308,7 @@ strLoop:
}
}
if (foundIdx == -1) {
if (foundIdx == -1) {
patDirs = null; strDirs = null;
return false;
return false;
}
}
@@ -312,6 +318,7 @@ strLoop:
for (int i = patIdxStart; i <= patIdxEnd; i++) {
for (int i = patIdxStart; i <= patIdxEnd; i++) {
if (!patDirs.elementAt(i).equals("**")) {
if (!patDirs.elementAt(i).equals("**")) {
patDirs = null; strDirs = null;
return false;
return false;
}
}
}
}