Commit 8747cbe
Remove StashBuilds#getCause(), call build.getCause() directly
The "build" argument in onStarted() and onCompleted() is not of a raw
type anymore, which enables type-safe behavior without casts.
build.getCause() returns a value of the type provided in its argument. If
cause is null or there is no cause of the given type, build.getCause()
returns null.
That is the desired behavior. No extra wrapper is required.1 parent cf25c4f commit 8747cbe
File tree
1 file changed
+2
-11
lines changed- src/main/java/stashpullrequestbuilder/stashpullrequestbuilder
1 file changed
+2
-11
lines changedLines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 25 | | |
35 | | - | |
| 26 | + | |
36 | 27 | | |
37 | 28 | | |
38 | 29 | | |
| |||
44 | 35 | | |
45 | 36 | | |
46 | 37 | | |
47 | | - | |
| 38 | + | |
48 | 39 | | |
49 | 40 | | |
50 | 41 | | |
| |||
0 commit comments