Commit f3bef05 1 parent 5ff35d2 commit f3bef05 Copy full SHA for f3bef05
File tree 1 file changed +3
-4
lines changed
compiler/core/src/zserio/tools
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 6
6
import java .io .StringWriter ;
7
7
import java .io .UnsupportedEncodingException ;
8
8
import java .net .MalformedURLException ;
9
+ import java .net .URI ;
9
10
import java .net .URISyntaxException ;
10
11
import java .net .URL ;
11
12
import java .net .URLClassLoader ;
12
13
import java .net .URLDecoder ;
13
- import java .nio .file .Path ;
14
- import java .nio .file .Paths ;
15
14
import java .util .ArrayList ;
16
15
import java .util .Collections ;
17
16
import java .util .Iterator ;
@@ -150,9 +149,9 @@ private File getWorkingDirectory()
150
149
File decodedExecFile = null ;
151
150
try
152
151
{
153
- decodedExecFile = new File (new URL (decodedExecUrlPath ). toURI ( ));
152
+ decodedExecFile = new File (new URI (decodedExecUrlPath ));
154
153
}
155
- catch (MalformedURLException | URISyntaxException | IllegalArgumentException excpt )
154
+ catch (URISyntaxException excpt )
156
155
{
157
156
decodedExecFile = new File (decodedExecUrlPath );
158
157
}
You can’t perform that action at this time.
0 commit comments