Polishing
This commit is contained in:
parent
6662ecc8cc
commit
12a6a84829
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2024 the original author or authors.
|
* Copyright 2002-2025 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -125,7 +125,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings({ "removal", "deprecation" })
|
||||||
void submitListenableRunnable() {
|
void submitListenableRunnable() {
|
||||||
TestTask task = new TestTask(this.testName, 1);
|
TestTask task = new TestTask(this.testName, 1);
|
||||||
// Act
|
// Act
|
||||||
|
@ -156,7 +156,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings({ "removal", "deprecation" })
|
||||||
void submitFailingListenableRunnable() {
|
void submitFailingListenableRunnable() {
|
||||||
TestTask task = new TestTask(this.testName, 0);
|
TestTask task = new TestTask(this.testName, 0);
|
||||||
org.springframework.util.concurrent.ListenableFuture<?> future = executor.submitListenable(task);
|
org.springframework.util.concurrent.ListenableFuture<?> future = executor.submitListenable(task);
|
||||||
|
@ -185,7 +185,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings({ "removal", "deprecation" })
|
||||||
void submitListenableRunnableWithGetAfterShutdown() throws Exception {
|
void submitListenableRunnableWithGetAfterShutdown() throws Exception {
|
||||||
org.springframework.util.concurrent.ListenableFuture<?> future1 = executor.submitListenable(new TestTask(this.testName, -1));
|
org.springframework.util.concurrent.ListenableFuture<?> future1 = executor.submitListenable(new TestTask(this.testName, -1));
|
||||||
org.springframework.util.concurrent.ListenableFuture<?> future2 = executor.submitListenable(new TestTask(this.testName, -1));
|
org.springframework.util.concurrent.ListenableFuture<?> future2 = executor.submitListenable(new TestTask(this.testName, -1));
|
||||||
|
@ -252,7 +252,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings({ "removal", "deprecation" })
|
||||||
void submitListenableCallable() {
|
void submitListenableCallable() {
|
||||||
TestCallable task = new TestCallable(this.testName, 1);
|
TestCallable task = new TestCallable(this.testName, 1);
|
||||||
// Act
|
// Act
|
||||||
|
@ -267,7 +267,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings({ "removal", "deprecation" })
|
||||||
void submitFailingListenableCallable() {
|
void submitFailingListenableCallable() {
|
||||||
TestCallable task = new TestCallable(this.testName, 0);
|
TestCallable task = new TestCallable(this.testName, 0);
|
||||||
// Act
|
// Act
|
||||||
|
@ -283,7 +283,7 @@ abstract class AbstractSchedulingTaskExecutorTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings({ "removal", "deprecation" })
|
||||||
void submitListenableCallableWithGetAfterShutdown() throws Exception {
|
void submitListenableCallableWithGetAfterShutdown() throws Exception {
|
||||||
org.springframework.util.concurrent.ListenableFuture<?> future1 = executor.submitListenable(new TestCallable(this.testName, -1));
|
org.springframework.util.concurrent.ListenableFuture<?> future1 = executor.submitListenable(new TestCallable(this.testName, -1));
|
||||||
org.springframework.util.concurrent.ListenableFuture<?> future2 = executor.submitListenable(new TestCallable(this.testName, -1));
|
org.springframework.util.concurrent.ListenableFuture<?> future2 = executor.submitListenable(new TestCallable(this.testName, -1));
|
||||||
|
|
Loading…
Reference in New Issue