File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
src/main/java/engineering/swat/watch/impl Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 5656import com .sun .nio .file .ExtendedWatchEventModifier ;
5757
5858import engineering .swat .watch .impl .mac .MacWatchService ;
59- import engineering .swat .watch .impl .mac .MacWatchable ;
6059import engineering .swat .watch .impl .util .SubscriptionKey ;
6160
6261/**
@@ -173,7 +172,7 @@ public WatchService newWatchService() throws IOException {
173172 }
174173 @ Override
175174 public Watchable newWatchable (Path path ) {
176- return new MacWatchable (path );
175+ return MacWatchService . newWatchable (path );
177176 }
178177 };
179178
Original file line number Diff line number Diff line change 2828
2929import java .io .IOException ;
3030import java .nio .file .ClosedWatchServiceException ;
31+ import java .nio .file .Path ;
3132import java .nio .file .WatchKey ;
3233import java .nio .file .WatchService ;
3334import java .util .concurrent .BlockingQueue ;
@@ -48,6 +49,10 @@ public boolean isClosed() {
4849 return closed ;
4950 }
5051
52+ public static MacWatchable newWatchable (Path path ) {
53+ return new MacWatchable (path );
54+ }
55+
5156 // -- WatchService --
5257
5358 @ Override
Original file line number Diff line number Diff line change 4242import java .util .function .Function ;
4343import java .util .stream .Stream ;
4444
45- public class MacWatchable implements Watchable {
45+ class MacWatchable implements Watchable {
4646 private final Path path ;
4747 private final Map <MacWatchService , MacWatchKey > registrations ;
4848
You can’t perform that action at this time.
0 commit comments