mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 02:15:59 +07:00
22 lines
629 B
Java
22 lines
629 B
Java
class BrokenAlignment {
|
|
|
|
private static boolean dominates(final WatchRequestImpl request, final WatchRequestImpl other) {
|
|
if (request.myToWatchRecursively) {
|
|
return other.myRootPath.startsWith(request.myRootPath);
|
|
}
|
|
|
|
return !other.myToWatchRecursively && request.myRootPath.equals(other.myRootPath);
|
|
}
|
|
|
|
private static class WatchRequestImpl {
|
|
private final boolean myToWatchRecursively;
|
|
private final String myRootPath;
|
|
|
|
private WatchRequestImpl(boolean toWatchRecursively) {
|
|
myToWatchRecursively = toWatchRecursively;
|
|
myRootPath = toWatchRecursively ? "one" : "two";
|
|
}
|
|
|
|
}
|
|
|
|
} |