File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/main/java/org/apache/ibatis/io Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 2121import java .io .IOException ;
2222import java .io .InputStream ;
2323import java .io .InputStreamReader ;
24- import java .io .UnsupportedEncodingException ;
2524import java .net .MalformedURLException ;
2625import java .net .URL ;
2726import java .net .URLEncoder ;
@@ -278,11 +277,7 @@ protected URL findJarForResource(URL url) throws MalformedURLException {
278277
279278 // File name might be URL-encoded
280279 if (!file .exists ()) {
281- try {
282- file = new File (URLEncoder .encode (jarUrl .toString (), StandardCharsets .UTF_8 .name ()));
283- } catch (UnsupportedEncodingException e ) {
284- throw new RuntimeException ("Unsupported encoding? UTF-8? That's impossible." );
285- }
280+ file = new File (URLEncoder .encode (jarUrl .toString (), StandardCharsets .UTF_8 ));
286281 }
287282
288283 if (file .exists ()) {
You can’t perform that action at this time.
0 commit comments