mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 10:36:21 +00:00
Java 7: identical multi-catch sections
This commit is contained in:
1 parent
385cfb081d
commit
345b964962
33 files changed
+40
-141
No files matched your search
@@ -95,9 +95,7 @@ public class ExtensionComponent<T> implements Comparable<ExtensionComponent<T>>
|
||||
if (this.instance instanceof Descriptor && that.instance instanceof Descriptor) {
|
||||
try {
|
||||
return Util.fixNull(((Descriptor)this.instance).getDisplayName()).compareTo(Util.fixNull(((Descriptor)that.instance).getDisplayName()));
|
||||
} catch (RuntimeException x) {
|
||||
LOG.log(Level.WARNING, null, x);
|
||||
} catch (LinkageError x) {
|
||||
} catch (RuntimeException | LinkageError x) {
|
||||
LOG.log(Level.WARNING, null, x);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user