提交 6502ced7 编写于 作者: K kohsuke

clarified the default behavior of the newInstance method.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9205 71c3de6d-444a-0410-be80-ed276b4c234a
上级 9434a171
......@@ -6,6 +6,7 @@ import org.apache.commons.jelly.JellyException;
import org.kohsuke.stapler.MetaClass;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.jelly.JellyClassTearOff;
import net.sf.json.JSONObject;
/**
* {@link Descriptor} for {@link MavenReporter}.
......@@ -41,10 +42,19 @@ public abstract class MavenReporterDescriptor extends Descriptor<MavenReporter>
* If {@link #hasConfigScreen() the reporter has no configuration screen},
* this method can safely return null, which is the default implementation.
*/
@Deprecated
public MavenReporter newInstance(StaplerRequest req) throws FormException {
return null;
}
/**
* If {@link #hasConfigScreen() the reporter has no configuration screen},
* this method can safely return null, which is the default implementation.
*/
public MavenReporter newInstance(StaplerRequest req, JSONObject formData) throws FormException {
return null;
}
/**
* Returns true if this descriptor has <tt>config.jelly</tt>.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册