You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
In class PropertiesWatcher method pathMatchResources does not always work.
indeed it uses Path.getFileName().toString() method to compare with resource. But toString method does not always returns file name as expected, depending on OS and JDK version.
it's a better approach to use equals method.
privatebooleanpathMatchesResource(finalPathtarget, finalResourceresource) {
//at this point target cannot be nullreturnPaths.get(resource.getFilename()).equals(target);
}
of course this method works only for file resources.