mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 02:33:48 +07:00
21 lines
579 B
Java
21 lines
579 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;
|
|
}
|
|
|
|
}
|
|
|
|
} |