@@ -527,9 +527,7 @@ public void configure(final Env env, final Config conf, final Binder binder) thr
527527 this .watcher = FileSystems .getDefault ().newWatchService ();
528528 binder .bind (WatchService .class ).toInstance (watcher );
529529 List <FileEventOptions > paths = new ArrayList <>();
530- paths (env .getClass ().getClassLoader (), conf , "filewatcher.register" , options -> {
531- paths .add (register (binder , options ));
532- });
530+ paths (env .getClass ().getClassLoader (), conf , "filewatcher.register" , options -> paths .add (register (binder , options )));
533531 for (Throwing .Function2 <Config , Binder , FileEventOptions > binding : bindings ) {
534532 paths .add (binding .apply (conf , binder ));
535533 }
@@ -543,7 +541,7 @@ protected boolean empty() {
543541
544542 @ SuppressWarnings ({"unchecked" , "rawtypes" })
545543 private void paths (final ClassLoader loader , final Config conf , final String name ,
546- final Consumer <FileEventOptions > callback ) throws Throwable {
544+ final Consumer <FileEventOptions > callback ) {
547545 list (conf , name , value -> {
548546 Config coptions = ConfigFactory .parseMap ((Map ) value );
549547 Class handler = loader .loadClass (coptions .getString ("handler" ));
@@ -558,8 +556,7 @@ private void paths(final ClassLoader loader, final Config conf, final String nam
558556 }
559557
560558 @ SuppressWarnings ("rawtypes" )
561- private void list (final Config conf , final String name , final Throwing .Consumer <Object > callback )
562- throws Throwable {
559+ private void list (final Config conf , final String name , final Throwing .Consumer <Object > callback ) {
563560 if (conf .hasPath (name )) {
564561 Object value = conf .getAnyRef (name );
565562 List values = value instanceof List ? (List ) value : ImmutableList .of (value );
0 commit comments