fix broken usage of path api

This commit is contained in:
Robert Muir 2015-07-10 01:02:13 -04:00
parent 5d059313dc
commit 5b4e86389c
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ public class JarHell {
logger.debug("excluding system resource: {}", path); logger.debug("excluding system resource: {}", path);
continue; continue;
} }
if (path.endsWith(".jar")) { if (path.toString().endsWith(".jar")) {
if (!seenJars.add(path)) { if (!seenJars.add(path)) {
logger.debug("excluding duplicate classpath element: {}", path); logger.debug("excluding duplicate classpath element: {}", path);
continue; // we can't fail because of sheistiness with joda-time continue; // we can't fail because of sheistiness with joda-time