@@ -21,21 +21,22 @@ private PostExecutionControl(
2121 this .runtimeException = runtimeException ;
2222 }
2323
24- public static PostExecutionControl onlyFinalizerAdded () {
25- return new PostExecutionControl (true , null , null );
24+ public static < R extends CustomResource <?, ?>> PostExecutionControl < R > onlyFinalizerAdded () {
25+ return new PostExecutionControl <> (true , null , null );
2626 }
2727
28- public static PostExecutionControl defaultDispatch () {
29- return new PostExecutionControl (false , null , null );
28+ public static < R extends CustomResource <?, ?>> PostExecutionControl < R > defaultDispatch () {
29+ return new PostExecutionControl <> (false , null , null );
3030 }
3131
3232 public static <R extends CustomResource <?, ?>> PostExecutionControl <R > customResourceUpdated (
3333 R updatedCustomResource ) {
3434 return new PostExecutionControl <>(false , updatedCustomResource , null );
3535 }
3636
37- public static PostExecutionControl exceptionDuringExecution (RuntimeException exception ) {
38- return new PostExecutionControl (false , null , exception );
37+ public static <R extends CustomResource <?, ?>> PostExecutionControl <R > exceptionDuringExecution (
38+ RuntimeException exception ) {
39+ return new PostExecutionControl <>(false , null , exception );
3940 }
4041
4142 public boolean isOnlyFinalizerHandled () {
@@ -54,7 +55,7 @@ public boolean exceptionDuringExecution() {
5455 return runtimeException != null ;
5556 }
5657
57- public PostExecutionControl withReSchedule (long delay ) {
58+ public PostExecutionControl < R > withReSchedule (long delay ) {
5859 this .reScheduleDelay = delay ;
5960 return this ;
6061 }
0 commit comments