@@ -65,8 +65,7 @@ public List<String> list(URL url, String path) throws IOException {
65
65
log .debug ("Listing " + url );
66
66
}
67
67
resources = listResources (new JarInputStream (is ), path );
68
- }
69
- else {
68
+ } else {
70
69
List <String > children = new ArrayList <>();
71
70
try {
72
71
if (isJar (url )) {
@@ -84,8 +83,7 @@ public List<String> list(URL url, String path) throws IOException {
84
83
children .add (entry .getName ());
85
84
}
86
85
}
87
- }
88
- else {
86
+ } else {
89
87
/*
90
88
* Some servlet containers allow reading from directory resources like a
91
89
* text file, listing the child resources one per line. However, there is no
@@ -132,8 +130,7 @@ public List<String> list(URL url, String path) throws IOException {
132
130
}
133
131
children = Arrays .asList (file .list ());
134
132
}
135
- }
136
- else {
133
+ } else {
137
134
// No idea where the exception came from so rethrow it
138
135
throw e ;
139
136
}
@@ -244,8 +241,7 @@ protected URL findJarForResource(URL url) throws MalformedURLException {
244
241
if (log .isDebugEnabled ()) {
245
242
log .debug ("Extracted JAR URL: " + jarUrl );
246
243
}
247
- }
248
- else {
244
+ } else {
249
245
if (log .isDebugEnabled ()) {
250
246
log .debug ("Not a JAR: " + jarUrl );
251
247
}
@@ -257,8 +253,7 @@ protected URL findJarForResource(URL url) throws MalformedURLException {
257
253
URL testUrl = new URL (jarUrl .toString ());
258
254
if (isJar (testUrl )) {
259
255
return testUrl ;
260
- }
261
- else {
256
+ } else {
262
257
// WebLogic fix: check if the URL's file exists in the filesystem.
263
258
if (log .isDebugEnabled ()) {
264
259
log .debug ("Not a JAR: " + jarUrl );
0 commit comments