From 0e800538c00471d7480f4c208a3c499fcbba298b Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Sun, 22 Mar 2026 17:31:14 +0100 Subject: [PATCH] Fix warning in ConcurrentOperationExecutor.kt Prior to this commit, the following warning was emitted in the build. w: file:////spring-framework/framework-docs/src/main/kotlin/org/springframework/docs/core/aop/ataspectj/aopataspectjexample/ConcurrentOperationExecutor.kt:57:29 Unnecessary non-null assertion (!!) on a non-null receiver of type 'PessimisticLockingFailureException'. --- .../aopataspectjexample/ConcurrentOperationExecutor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework-docs/src/main/kotlin/org/springframework/docs/core/aop/ataspectj/aopataspectjexample/ConcurrentOperationExecutor.kt b/framework-docs/src/main/kotlin/org/springframework/docs/core/aop/ataspectj/aopataspectjexample/ConcurrentOperationExecutor.kt index b1ea7194b36..c8c81d8c4e9 100644 --- a/framework-docs/src/main/kotlin/org/springframework/docs/core/aop/ataspectj/aopataspectjexample/ConcurrentOperationExecutor.kt +++ b/framework-docs/src/main/kotlin/org/springframework/docs/core/aop/ataspectj/aopataspectjexample/ConcurrentOperationExecutor.kt @@ -54,6 +54,6 @@ class ConcurrentOperationExecutor : Ordered { lockFailureException = ex } } while (numAttempts <= this.maxRetries) - throw lockFailureException!! + throw lockFailureException } } // end::snippet[] \ No newline at end of file