From 4758424f6c7a2291ccd7786b95e844bd671ec977 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:49:17 +0200 Subject: [PATCH] Clean up warnings in Gradle build --- .../cache/interceptor/CacheErrorHandlerTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-context/src/test/java/org/springframework/cache/interceptor/CacheErrorHandlerTests.java b/spring-context/src/test/java/org/springframework/cache/interceptor/CacheErrorHandlerTests.java index a3f98df467..3b17343941 100644 --- a/spring-context/src/test/java/org/springframework/cache/interceptor/CacheErrorHandlerTests.java +++ b/spring-context/src/test/java/org/springframework/cache/interceptor/CacheErrorHandlerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,7 +76,6 @@ class CacheErrorHandlerTests { this.simpleService = context.getBean(SimpleService.class); } - @AfterEach void closeContext() { this.context.close(); @@ -95,6 +94,7 @@ class CacheErrorHandlerTests { } @Test + @SuppressWarnings("unchecked") public void getSyncFail() { UnsupportedOperationException exception = new UnsupportedOperationException("Test exception on get"); willThrow(exception).given(this.cache).get(eq(0L), any(Callable.class)); @@ -127,7 +127,6 @@ class CacheErrorHandlerTests { verify(this.cache).retrieve(eq(0L)); } - @Test public void getFluxFail() { UnsupportedOperationException exception = new UnsupportedOperationException("Test exception on get");