提交 6c560fab 编写于 作者: K Kohsuke Kawaguchi

newer code need not do this

上级 6b367697
......@@ -533,11 +533,15 @@ public class Maven extends Builder {
return Collections.singletonList(new MavenInstaller(null));
}
// overriding them for backward compatibility.
// newer code need not do this
@Override
public MavenInstallation[] getInstallations() {
return Jenkins.getInstance().getDescriptorByType(Maven.DescriptorImpl.class).getInstallations();
}
// overriding them for backward compatibility.
// newer code need not do this
@Override
public void setInstallations(MavenInstallation... installations) {
Jenkins.getInstance().getDescriptorByType(Maven.DescriptorImpl.class).setInstallations(installations);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册