Skip to content

Commit 12a6a84

Browse files
committed
Polishing
1 parent 6662ecc commit 12a6a84

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spring-context/src/test/java/org/springframework/scheduling/concurrent/AbstractSchedulingTaskExecutorTests.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -125,7 +125,7 @@ void submitRunnableWithGetAfterShutdown() throws Exception {
125125
}
126126

127127
@Test
128-
@SuppressWarnings("removal")
128+
@SuppressWarnings({ "removal", "deprecation" })
129129
void submitListenableRunnable() {
130130
TestTask task = new TestTask(this.testName, 1);
131131
// Act
@@ -156,7 +156,7 @@ void submitCompletableRunnable() {
156156
}
157157

158158
@Test
159-
@SuppressWarnings("removal")
159+
@SuppressWarnings({ "removal", "deprecation" })
160160
void submitFailingListenableRunnable() {
161161
TestTask task = new TestTask(this.testName, 0);
162162
org.springframework.util.concurrent.ListenableFuture<?> future = executor.submitListenable(task);
@@ -185,7 +185,7 @@ void submitFailingCompletableRunnable() {
185185
}
186186

187187
@Test
188-
@SuppressWarnings("removal")
188+
@SuppressWarnings({ "removal", "deprecation" })
189189
void submitListenableRunnableWithGetAfterShutdown() throws Exception {
190190
org.springframework.util.concurrent.ListenableFuture<?> future1 = executor.submitListenable(new TestTask(this.testName, -1));
191191
org.springframework.util.concurrent.ListenableFuture<?> future2 = executor.submitListenable(new TestTask(this.testName, -1));
@@ -252,7 +252,7 @@ void submitCallableWithGetAfterShutdown() throws Exception {
252252
}
253253

254254
@Test
255-
@SuppressWarnings("removal")
255+
@SuppressWarnings({ "removal", "deprecation" })
256256
void submitListenableCallable() {
257257
TestCallable task = new TestCallable(this.testName, 1);
258258
// Act
@@ -267,7 +267,7 @@ void submitListenableCallable() {
267267
}
268268

269269
@Test
270-
@SuppressWarnings("removal")
270+
@SuppressWarnings({ "removal", "deprecation" })
271271
void submitFailingListenableCallable() {
272272
TestCallable task = new TestCallable(this.testName, 0);
273273
// Act
@@ -283,7 +283,7 @@ void submitFailingListenableCallable() {
283283
}
284284

285285
@Test
286-
@SuppressWarnings("removal")
286+
@SuppressWarnings({ "removal", "deprecation" })
287287
void submitListenableCallableWithGetAfterShutdown() throws Exception {
288288
org.springframework.util.concurrent.ListenableFuture<?> future1 = executor.submitListenable(new TestCallable(this.testName, -1));
289289
org.springframework.util.concurrent.ListenableFuture<?> future2 = executor.submitListenable(new TestCallable(this.testName, -1));

0 commit comments

Comments
 (0)