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 21
21
import java .io .IOException ;
22
22
import java .io .InputStream ;
23
23
import java .io .InputStreamReader ;
24
- import java .io .UnsupportedEncodingException ;
25
24
import java .net .MalformedURLException ;
26
25
import java .net .URL ;
27
26
import java .net .URLEncoder ;
@@ -278,11 +277,7 @@ protected URL findJarForResource(URL url) throws MalformedURLException {
278
277
279
278
// File name might be URL-encoded
280
279
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 ));
286
281
}
287
282
288
283
if (file .exists ()) {
You can’t perform that action at this time.
0 commit comments