* use the same method name

This commit is contained in:
Reinhard Pointner 2014-09-19 07:56:42 +00:00
parent 2707012ab4
commit 8d35ad5b2c
1 changed files with 2 additions and 2 deletions

View File

@ -331,10 +331,10 @@ public class ScriptShellMethods {
} }
public static FolderWatchService watchFolder(File self, Closure<?> callback) throws IOException { public static FolderWatchService watchFolder(File self, Closure<?> callback) throws IOException {
return watch(self, false, false, 1000, callback); return watchFolder(self, false, false, 1000, callback);
} }
public static FolderWatchService watch(File self, boolean watchTree, boolean commitPerFolder, long commitDelay, final Closure<?> callback) throws IOException { public static FolderWatchService watchFolder(File self, boolean watchTree, boolean commitPerFolder, long commitDelay, final Closure<?> callback) throws IOException {
FolderWatchService watchService = new FolderWatchService(watchTree) { FolderWatchService watchService = new FolderWatchService(watchTree) {
@Override @Override