File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
xml/src/main/java/org/springframework/xml/xsd/commons Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -257,16 +257,14 @@ else if (StringUtils.hasLength(baseUri)) {
257257 }
258258 }
259259 catch (IOException e ) {
260- // fall through to super.resolveEntity
260+ // fall through
261261 }
262262 }
263- else {
264- // let's try and find it on the classpath, see SWS-362
265- String classpathLocation = ResourceLoader .CLASSPATH_URL_PREFIX + "/" + schemaLocation ;
266- resource = resourceLoader .getResource (classpathLocation );
267- if (resource .exists ()) {
268- return createInputSource (resource );
269- }
263+ // let's try and find it on the classpath, see SWS-362
264+ String classpathLocation = ResourceLoader .CLASSPATH_URL_PREFIX + "/" + schemaLocation ;
265+ resource = resourceLoader .getResource (classpathLocation );
266+ if (resource .exists ()) {
267+ return createInputSource (resource );
270268 }
271269 }
272270 return super .resolveEntity (namespace , schemaLocation , baseUri );
You can’t perform that action at this time.
0 commit comments