mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
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
This commit is contained in:
1 parent
9434a1712b
commit
6502ced79c
1 file changed
+10
@@ -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>.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user