diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc45e39..1d11052 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - # Setup the version of Java + # Set up the version of Java - name: Set up JDK ${{ matrix.java_version }} uses: actions/setup-java@v2 with: diff --git a/src/main/java/org/kiwiproject/retry/Attempt.java b/src/main/java/org/kiwiproject/retry/Attempt.java index a180b1f..1ff0927 100644 --- a/src/main/java/org/kiwiproject/retry/Attempt.java +++ b/src/main/java/org/kiwiproject/retry/Attempt.java @@ -103,7 +103,7 @@ public boolean hasException() { /** * Gets the result of the call * - * @return the result of the call (may be {@code null}) + * @return the result of the call (can be {@code null}) * @throws IllegalStateException if the call didn't return a result, but threw an exception, * as indicated by {@link #hasResult()} */ diff --git a/src/main/java/org/kiwiproject/retry/RetryerBuilder.java b/src/main/java/org/kiwiproject/retry/RetryerBuilder.java index e81b3a1..8751b71 100644 --- a/src/main/java/org/kiwiproject/retry/RetryerBuilder.java +++ b/src/main/java/org/kiwiproject/retry/RetryerBuilder.java @@ -137,8 +137,8 @@ public RetryerBuilder retryIfRuntimeException() { } /** - * Configures the retryer to retry if an exception of the given class (or subclass of the given class) is - * thrown by the call. + * Configures the retryer to retry if an exception is thrown by the call and the thrown exception's type + * is the given class (or a subclass of the given class). * * @param exceptionClass the type of the exception which should cause the retryer to retry * @return this