File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
src/main/java/org/jenkinsci/plugins/workflow/steps Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 1010 * Partial convenient step implementation.
1111 * Used with {@link AbstractStepDescriptorImpl} and {@link AbstractStepExecutionImpl}.
1212 * @author Kohsuke Kawaguchi
13- * @deprecated Directly extend {@link Step} and avoid Guice.
1413 */
15- @ Deprecated
1614public abstract class AbstractStepImpl extends Step {
1715
16+ /**
17+ * @deprecated Directly extend {@link Step} and avoid Guice.
18+ * Or see {@link #AbstractStepImpl(boolean)} for an existing step.
19+ */
20+ @ Deprecated
21+ protected AbstractStepImpl () {}
22+
23+ /**
24+ * Constructor for compatibility.
25+ * Retain this constructor and override {@link #start} if your step historically extended {@link AbstractStepImpl},
26+ * and your {@link AbstractStepExecutionImpl} kept a non-{@code transient} reference to the {@link AbstractStepImpl},
27+ * for serial form compatibility.
28+ * For new steps, extend {@link Step} directly.
29+ * @param ignored ignored, just to differentiate this constructor from {@link #AbstractStepImpl()} as a marker that the supertype must be retained
30+ */
31+ protected AbstractStepImpl (boolean ignored ) {}
32+
1833 /** Constructs a step execution automatically according to {@link AbstractStepDescriptorImpl#getExecutionType}. */
19- @ Override public final StepExecution start (StepContext context ) throws Exception {
34+ @ Override public StepExecution start (StepContext context ) throws Exception {
2035 AbstractStepDescriptorImpl d = (AbstractStepDescriptorImpl ) getDescriptor ();
2136 return prepareInjector (context , this ).getInstance (d .getExecutionType ());
2237 }
You can’t perform that action at this time.
0 commit comments