Skip to content

Commit b3a70bd

Browse files
committed
Minor Javadoc fixes
1 parent c285214 commit b3a70bd

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/main/java/net/jodah/failsafe/Failsafe.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public class Failsafe {
3636
* Failsafe.with(fallback, retryPolicy, circuitBreaker).get(supplier);
3737
* </pre>
3838
* </p>
39-
* This results in the following internal composition when executing the {@code supplier} and handling its result:
39+
* This results in the following internal composition when executing a {@code runnable} or {@code supplier} and
40+
* handling its result:
4041
* <p>
4142
* <pre>
4243
* Fallback(RetryPolicy(CircuitBreaker(Supplier)))
@@ -65,10 +66,11 @@ public static <R, P extends Policy<R>> FailsafeExecutor<R> with(P outerPolicy, P
6566
* the last policy being applied first. For example, consider:
6667
* <p>
6768
* <pre>
68-
* Failsafe.with(fallback, retryPolicy, circuitBreaker).get(supplier);
69+
* Failsafe.with(Arrays.asList(fallback, retryPolicy, circuitBreaker)).get(supplier);
6970
* </pre>
7071
* </p>
71-
* This results in the following internal composition when executing the {@code supplier} and handling its result:
72+
* This results in the following internal composition when executing a {@code runnable} or {@code supplier} and
73+
* handling its result:
7274
* <p>
7375
* <pre>
7476
* Fallback(RetryPolicy(CircuitBreaker(Supplier)))

src/main/java/net/jodah/failsafe/FailurePolicy.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
/**
2828
* A Policy that captures conditions to determine whether an execution is a failure.
2929
* <p>
30-
* If no handlers are configured, the execution is considered a failure if an Exception was thrown.
30+
* By default, if no handlers are configured, the execution is considered a failure if an Exception was thrown. If
31+
* multuple handlers are configured, they are logically OR'ed.
3132
* </p>
3233
*
3334
* @param <S> self type

0 commit comments

Comments
 (0)