diff --git a/app/aem/core/src/main/java/com/cognifide/apm/core/services/ScriptsResourceChangeListener.java b/app/aem/core/src/main/java/com/cognifide/apm/core/services/ScriptsResourceChangeListener.java index 2ad6d7a9..64282fdb 100644 --- a/app/aem/core/src/main/java/com/cognifide/apm/core/services/ScriptsResourceChangeListener.java +++ b/app/aem/core/src/main/java/com/cognifide/apm/core/services/ScriptsResourceChangeListener.java @@ -74,12 +74,12 @@ public void deactivate() { } @Override - public void onChange(List list) { + public void onChange(List changes) { Bundle currentBundle = FrameworkUtil.getBundle(ScriptsResourceChangeListener.class); BundleContext bundleContext = currentBundle.getBundleContext(); SlingHelper.operateTraced(resolverProvider, resolver -> - list.stream() + changes.stream() .filter(resourceChange -> StringUtils.endsWith(resourceChange.getPath(), Apm.FILE_EXT)) .forEach(resourceChange -> { if (resourceChange.getType() == ResourceChange.ChangeType.ADDED) {