Skip to content

Commit f3bef05

Browse files
committed
Fix
1 parent 5ff35d2 commit f3bef05

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

compiler/core/src/zserio/tools/ExtensionManager.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
import java.io.StringWriter;
77
import java.io.UnsupportedEncodingException;
88
import java.net.MalformedURLException;
9+
import java.net.URI;
910
import java.net.URISyntaxException;
1011
import java.net.URL;
1112
import java.net.URLClassLoader;
1213
import java.net.URLDecoder;
13-
import java.nio.file.Path;
14-
import java.nio.file.Paths;
1514
import java.util.ArrayList;
1615
import java.util.Collections;
1716
import java.util.Iterator;
@@ -150,9 +149,9 @@ private File getWorkingDirectory()
150149
File decodedExecFile = null;
151150
try
152151
{
153-
decodedExecFile = new File(new URL(decodedExecUrlPath).toURI());
152+
decodedExecFile = new File(new URI(decodedExecUrlPath));
154153
}
155-
catch (MalformedURLException | URISyntaxException | IllegalArgumentException excpt)
154+
catch (URISyntaxException excpt)
156155
{
157156
decodedExecFile = new File(decodedExecUrlPath);
158157
}

0 commit comments

Comments
 (0)