Skip to content

Commit ac50184

Browse files
authored
Merge pull request #1072 from jglick/CpsBodySubContext.toString
Better `CpsBodySubContext.toString`
2 parents 94b6fd3 + 21af668 commit ac50184

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,14 @@ public int hashCode() {
5454
return 31 * base.hashCode() + node.hashCode();
5555
}
5656

57+
@Override
58+
public String toString() {
59+
return "CpsBodySubContext[" + base + ":" + node.getId()+ "]";
60+
}
61+
5762
// Delegation to 'base' from here
5863
//======================================
5964

60-
6165
@Override
6266
public void onFailure(Throwable t) {
6367
base.onFailure(t);

0 commit comments

Comments
 (0)