Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Dec 6, 2024
1 parent 5ff35d2 commit f3bef05
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions compiler/core/src/zserio/tools/ExtensionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLClassLoader;
import java.net.URLDecoder;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
Expand Down Expand Up @@ -150,9 +149,9 @@ private File getWorkingDirectory()
File decodedExecFile = null;
try
{
decodedExecFile = new File(new URL(decodedExecUrlPath).toURI());
decodedExecFile = new File(new URI(decodedExecUrlPath));
}
catch (MalformedURLException | URISyntaxException | IllegalArgumentException excpt)
catch (URISyntaxException excpt)
{
decodedExecFile = new File(decodedExecUrlPath);
}
Expand Down

0 comments on commit f3bef05

Please sign in to comment.