@FunctionalInterface public static interface RestartableJenkinsRule.Step
Closuredoes not work because it is an abstract class, not an interface.
Voiddoes not work because you have to return null.
Runnabledoes not work because it throws no checked exceptions.
Consumeris the same, and is not present in Java 7. Other candidates had similar issues.
Copyright © 2004–2022. All rights reserved.