mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
Enable RedundantModifier Checkstyle check
This commit is contained in:
1 parent
6f012029b8
commit
881365d30b
48 files changed
+70
-69
No files matched your search
@@ -1115,7 +1115,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
final JarURLConnection jarURLConnection = (JarURLConnection) uc;
|
||||
final String entryName = jarURLConnection.getEntryName();
|
||||
|
||||
try(final JarFile jarFile = jarURLConnection.getJarFile()) {
|
||||
try(JarFile jarFile = jarURLConnection.getJarFile()) {
|
||||
final JarEntry entry = (entryName != null && jarFile != null) ? jarFile.getJarEntry(entryName) : null;
|
||||
if (entry != null) {
|
||||
try(InputStream i = jarFile.getInputStream(entry)) {
|
||||
|
||||
Reference in new issue
Block a user