-
- Path tempJar = null;
- if (locator instanceof Path && Files.isDirectory((Path) locator))
- tempJar = toTempJar((Path) locator);
+ Path locatorPath = (Path) locator;
+ Path pathToUse;
+ if (locator instanceof Path && Files.isDirectory(locatorPath))
+ pathToUse = toTempJar(locatorPath);
+ else
+ pathToUse = locatorPath;