Skip to content

Commit d115361

Browse files
weixsunsnicoll
authored andcommitted
Remove redundant suppression
See gh-26448
1 parent b3e6eae commit d115361

File tree

10 files changed

+0
-10
lines changed

10 files changed

+0
-10
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/orm/jpa/AbstractJpaAutoConfigurationTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ EntityManagerFactoryBuilderCustomizer entityManagerFactoryBuilderCustomizer() {
420420

421421
}
422422

423-
@SuppressWarnings("serial")
424423
static class CustomJpaTransactionManager extends JpaTransactionManager {
425424

426425
}

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ResourcePropertiesBindingTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ private ContextConsumer<AssertableApplicationContext> assertResourceProperties(
6161
};
6262
}
6363

64-
@SuppressWarnings("deprecation")
6564
@Configuration(proxyBeanMethods = false)
6665
@EnableConfigurationProperties(ResourceProperties.class)
6766
static class TestConfiguration {

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,6 @@ void defaultPathMatching() {
847847

848848
@Test
849849
@Deprecated
850-
@SuppressWarnings("deprecation")
851850
void useSuffixPatternMatch() {
852851
this.contextRunner.withPropertyValues("spring.mvc.pathmatch.use-suffix-pattern:true",
853852
"spring.mvc.pathmatch.use-registered-suffix-pattern:true").run((context) -> {

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/ConfigFileApplicationContextInitializerTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
* @author Phillip Webb
3535
*/
3636
@Deprecated
37-
@SuppressWarnings("deprecation")
3837
@ExtendWith(SpringExtension.class)
3938
@DirtiesContext
4039
@ContextConfiguration(classes = ConfigFileApplicationContextInitializerTests.Config.class,

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jta/atomikos/AtomikosConnectionFactoryBeanTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ void beanMethods() throws Exception {
4242
verify(bean).close();
4343
}
4444

45-
@SuppressWarnings("serial")
4645
static class MockAtomikosConnectionFactoryBean extends AtomikosConnectionFactoryBean {
4746

4847
@Override

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jta/atomikos/AtomikosDataSourceBeanTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ void beanMethods() throws Exception {
4242
verify(bean).close();
4343
}
4444

45-
@SuppressWarnings("serial")
4645
static class MockAtomikosDataSourceBean extends AtomikosDataSourceBean {
4746

4847
@Override

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/AnnotationConfigServletWebServerApplicationContextTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ private void verifyContext() {
142142
}
143143

144144
@Component
145-
@SuppressWarnings("serial")
146145
static class ExampleServletWithAutowired extends GenericServlet {
147146

148147
@Autowired

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/mock/MockServlet.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
*
2929
* @author Phillip Webb
3030
*/
31-
@SuppressWarnings("serial")
3231
public class MockServlet extends GenericServlet {
3332

3433
@Override

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-couchbase/src/test/java/smoketest/data/couchbase/SampleCouchbaseApplicationTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ void testDefaultSettings(CapturedOutput output) {
4444
}
4545

4646
private boolean serverNotRunning(RuntimeException ex) {
47-
@SuppressWarnings("serial")
4847
NestedCheckedException nested = new NestedCheckedException("failed", ex) {
4948
};
5049
if (nested.contains(FeatureNotAvailableException.class)) {

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-liquibase/src/test/java/smoketest/liquibase/SampleLiquibaseApplicationTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ void testDefaultSettings(CapturedOutput output) throws Exception {
6767
.contains("Successfully released change log lock");
6868
}
6969

70-
@SuppressWarnings("serial")
7170
private boolean serverNotRunning(IllegalStateException ex) {
7271
NestedCheckedException nested = new NestedCheckedException("failed", ex) {
7372
};

0 commit comments

Comments
 (0)