Skip to content

Commit

Permalink
change directory watcher to java 7 so it can be used in the plugins. …
Browse files Browse the repository at this point in the history
…It was getting banned.
  • Loading branch information
mcqueen committed May 21, 2016
1 parent 8a8d2f6 commit 1d47e29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<packaging>takari-jar</packaging>
<name>Directory watcher with a native OSX implementation of the WatchService</name>
<properties>
<takari.javaSourceVersion>1.8</takari.javaSourceVersion>
<takari.javaSourceVersion>1.7</takari.javaSourceVersion>
<takari.licenseHeader>LICENSE-HEADER.txt</takari.licenseHeader>
</properties>
<developers>
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/io/takari/watcher/DirectoryChangeListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public interface DirectoryChangeListener {

void onDelete(Path path) throws IOException;

default boolean stopWatching() {
return false;
}
boolean stopWatching();

}
1 change: 1 addition & 0 deletions src/main/java/io/takari/watcher/DirectoryWatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public DirectoryChangeListener getListener() {
}

public void close() throws IOException {

watchService.close();
}

Expand Down

0 comments on commit 1d47e29

Please sign in to comment.