提交 320b7d2f 编写于 作者: S Stephen Connolly

[JENKINS-39404] Damn generics... was unusable...

I would need to use <A super Action> which would allow Object.class
上级 f03e6fd1
......@@ -208,7 +208,7 @@ public abstract class Actionable extends AbstractModelObject implements ModelObj
*/
@SuppressWarnings({"ConstantConditions", "deprecation"})
@SuppressFBWarnings("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE")
public <A extends Action> void replaceActions(@Nonnull Class<A> clazz, A a) {
public void replaceActions(@Nonnull Class<? extends Action> clazz, Action a) {
if (clazz == null) {
throw new IllegalArgumentException("Action type must be non-null");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册