Skip to content

Commit

Permalink
DEVEM-528 Fix ambiguous invocation of FileSystems.newFileSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
thijslemmens committed Feb 2, 2023
1 parent 84dfefc commit 5678df7
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 5678df7

Please sign in to comment.