Skip to content

Commit

Permalink
Merge pull request #292 from xenit-eu/DEVEM-528-bis
Browse files Browse the repository at this point in the history
DEVEM-528 Fix ambiguous invocation of FileSystems.newFileSystem
  • Loading branch information
thijslemmens committed Feb 2, 2023
2 parents 84dfefc + 5678df7 commit 211b562
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public class AlfrescoVersion {

@Nullable
public static AlfrescoVersion fromAlfrescoWar(@Nonnull Path warPath) throws IOException {
try(FileSystem zipFs = FileSystems.newFileSystem(warPath, null)) {
ClassLoader classLoader = null;
try(FileSystem zipFs = FileSystems.newFileSystem(warPath, classLoader)) {
Path versionPropertiesPath = zipFs.getPath("/");
for (String pathComponent : VERSION_PROPERTIES_PATH) {
versionPropertiesPath = versionPropertiesPath.resolve(pathComponent);
Expand Down

0 comments on commit 211b562

Please sign in to comment.