Skip to content

Commit ae014c3

Browse files
committed
1 parent ee13918 commit ae014c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/jenkinsci/plugins/workflow/support/DefaultStepContext.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ public abstract class DefaultStepContext extends StepContext {
6969

7070
/**
7171
* Uses {@link #doGet} but automatically translates certain kinds of objects into others.
72+
* <p>Note that some basic types are handled directly by {@link #get} and cannot be overridden,
73+
* such as {@link Run}, {@link Job}, {@link FlowExecution}, and {@link FlowNode}.
7274
* <p>{@inheritDoc}
7375
*/
7476
@Override public final <T> T get(Class<T> key) throws IOException, InterruptedException {
@@ -78,7 +80,7 @@ public abstract class DefaultStepContext extends StepContext {
7880
} else if (Job.class.isAssignableFrom(key)) {
7981
value = castOrNull(key, get(Run.class).getParent());
8082
} else if (FlowExecution.class.isAssignableFrom(key)) {
81-
value = castOrNull(key,getExecution());
83+
value = castOrNull(key, getExecution());
8284
} else if (FlowNode.class.isAssignableFrom(key)) {
8385
value = castOrNull(key, getNode());
8486
}

0 commit comments

Comments
 (0)