2828 */
2929public class Failsafe {
3030 /**
31- * Creates and returns a new {@link FailsafeExecutor} instance that will handle failures according to the given {@code
32- * policies} . The {@code policies} are composed around an execution and will handle execution results in reverse, with
33- * the last policy being applied first. For example, consider:
31+ * Creates and returns a new {@link FailsafeExecutor} instance that will handle failures according to the given
32+ * policies. The policies are composed around an execution and will handle execution results in reverse, with the last
33+ * policy being applied first. For example, consider:
3434 * <p>
3535 * <pre>
3636 * Failsafe.with(fallback, retryPolicy, circuitBreaker).get(supplier);
@@ -48,13 +48,13 @@ public class Failsafe {
4848 *
4949 * @param <R> result type
5050 * @param <P> policy type
51- * @throws NullPointerException if {@code outermostPolicy } is null
51+ * @throws NullPointerException if {@code outerPolicy } is null
5252 */
5353 @ SafeVarargs
54- public static <R , P extends Policy <R >> FailsafeExecutor <R > with (P outermostPolicy , P ... policies ) {
55- Assert .notNull (outermostPolicy , "outermostPolicy " );
54+ public static <R , P extends Policy <R >> FailsafeExecutor <R > with (P outerPolicy , P ... policies ) {
55+ Assert .notNull (outerPolicy , "outerPolicy " );
5656 List <Policy <R >> policyList = new ArrayList <>(policies .length + 1 );
57- policyList .add (outermostPolicy );
57+ policyList .add (outerPolicy );
5858 Collections .addAll (policyList , policies );
5959 return new FailsafeExecutor <>(policyList );
6060 }
0 commit comments