提交 093f21f6 编写于 作者: K Kohsuke Kawaguchi

made the test symmetric

上级 940ba75b
......@@ -76,7 +76,7 @@ public class ExtensionComponent<T> implements Comparable<ExtensionComponent<T>>
if (a<b) return 1;
// make the order bit more deterministic among extensions of the same ordinal
if (this.instance instanceof Descriptor) {
if (this.instance instanceof Descriptor && that.instance instanceof Descriptor) {
return Util.fixNull(((Descriptor)this.instance).getDisplayName()).compareTo(Util.fixNull(((Descriptor)that.instance).getDisplayName()));
} else {
return this.instance.getClass().getName().compareTo(that.instance.getClass().getName());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册