Skip to content

Commit c720362

Browse files
authored
Merge pull request #796 from jglick/deprecated
Added `@Deprecated` where `@deprecated` already in Javadoc
2 parents 65dec41 + 3275458 commit c720362

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowFactoryAction.java

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
/**
3434
* @deprecated Use {@link CpsFlowFactoryAction2} instead.
3535
*/
36+
@Deprecated
3637
public interface CpsFlowFactoryAction extends Action {
3738
CpsFlowExecution create(CpsFlowDefinition def, FlowExecutionOwner owner, List<? extends Action> actions) throws IOException;
3839
}

plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/DSL.java

+2
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ public Object invokeMethod(String name, Object args) {
223223
* When {@link #invokeMethod(String, Object)} is calling a {@link StepDescriptor}
224224
* @deprecated Prefer {@link #invokeStep(StepDescriptor, String, Object)}
225225
*/
226+
@Deprecated
226227
protected Object invokeStep(StepDescriptor d, Object args) {
227228
return invokeStep(d, d.getFunctionName(), args);
228229
}
@@ -798,6 +799,7 @@ private boolean invokeBodiesAndSwitchToAsyncMode(CpsThread cur) {
798799
* @deprecated
799800
* Unused as of 1.2. Left here for serialization compatibility.
800801
*/
802+
@Deprecated
801803
private static class HeadCollector extends BodyExecutionCallback {
802804
private final CpsStepContext context;
803805
private final FlowHead head;

plugin/src/test/java/org/jenkinsci/plugins/workflow/SingleJobTestBase.java

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
* @author Kohsuke Kawaguchi
4646
* @deprecated inline relevant parts
4747
*/
48+
@Deprecated
4849
public abstract class SingleJobTestBase extends Assert {
4950

5051
@ClassRule public static BuildWatcher buildWatcher = new BuildWatcher();
@@ -72,13 +73,15 @@ public void rebuildContext(JenkinsRule j) throws Exception {
7273
}
7374

7475
/** @deprecated use {@link JenkinsRule#waitForCompletion} instead */
76+
@Deprecated
7577
public void waitForWorkflowToComplete() throws Exception {
7678
do {
7779
waitForWorkflowToSuspend(e);
7880
} while (!e.isComplete());
7981
}
8082

8183
/** @deprecated Use some other idiom, like {@link SemaphoreStep}. */
84+
@Deprecated
8285
public void waitForWorkflowToSuspend() throws Exception {
8386
waitForWorkflowToSuspend(e);
8487
}

0 commit comments

Comments
 (0)