gemmellr commented on code in PR #5881: URL: https://github.com/apache/activemq-artemis/pull/5881#discussion_r2287589200
########## artemis-web/src/main/java/org/apache/activemq/artemis/component/WebServerComponent.java: ########## @@ -375,11 +376,14 @@ private Scanner getScanner() { scanner.setReportDirs(false); scanner.setReportExistingFilesOnStartup(false); scanner.setScanDepth(1); - scanner.addListener((Scanner.BulkListener) filenames -> { - for (String filename: filenames) { - List<Runnable> tasks = scannerTasks.get(filename); - if (tasks != null) { - tasks.forEach(t -> t.run()); + scanner.addListener(new Scanner.BulkListener() { + @Override + public void filesChanged(Set<String> filenames) throws Exception { Review Comment: It seems filesChanged was deprecated for removal, so perhaps its worth switching to the new pathChanged to avoid a future break? https://github.com/jetty/jetty.project/blob/jetty-12.1.0/jetty-core/jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java#L330-L386 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For additional commands, e-mail: gitbox-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact