mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Remove redundant suppression
See gh-26448
This commit is contained in:
parent
b3e6eaec7e
commit
d115361980
@ -420,7 +420,6 @@ abstract class AbstractJpaAutoConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
static class CustomJpaTransactionManager extends JpaTransactionManager {
|
||||
|
||||
}
|
||||
|
@ -61,7 +61,6 @@ class ResourcePropertiesBindingTests {
|
||||
};
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(ResourceProperties.class)
|
||||
static class TestConfiguration {
|
||||
|
@ -847,7 +847,6 @@ class WebMvcAutoConfigurationTests {
|
||||
|
||||
@Test
|
||||
@Deprecated
|
||||
@SuppressWarnings("deprecation")
|
||||
void useSuffixPatternMatch() {
|
||||
this.contextRunner.withPropertyValues("spring.mvc.pathmatch.use-suffix-pattern:true",
|
||||
"spring.mvc.pathmatch.use-registered-suffix-pattern:true").run((context) -> {
|
||||
|
@ -34,7 +34,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Phillip Webb
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("deprecation")
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@DirtiesContext
|
||||
@ContextConfiguration(classes = ConfigFileApplicationContextInitializerTests.Config.class,
|
||||
|
@ -42,7 +42,6 @@ class AtomikosConnectionFactoryBeanTests {
|
||||
verify(bean).close();
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
static class MockAtomikosConnectionFactoryBean extends AtomikosConnectionFactoryBean {
|
||||
|
||||
@Override
|
||||
|
@ -42,7 +42,6 @@ class AtomikosDataSourceBeanTests {
|
||||
verify(bean).close();
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
static class MockAtomikosDataSourceBean extends AtomikosDataSourceBean {
|
||||
|
||||
@Override
|
||||
|
@ -142,7 +142,6 @@ class AnnotationConfigServletWebServerApplicationContextTests {
|
||||
}
|
||||
|
||||
@Component
|
||||
@SuppressWarnings("serial")
|
||||
static class ExampleServletWithAutowired extends GenericServlet {
|
||||
|
||||
@Autowired
|
||||
|
@ -28,7 +28,6 @@ import javax.servlet.ServletResponse;
|
||||
*
|
||||
* @author Phillip Webb
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MockServlet extends GenericServlet {
|
||||
|
||||
@Override
|
||||
|
@ -44,7 +44,6 @@ class SampleCouchbaseApplicationTests {
|
||||
}
|
||||
|
||||
private boolean serverNotRunning(RuntimeException ex) {
|
||||
@SuppressWarnings("serial")
|
||||
NestedCheckedException nested = new NestedCheckedException("failed", ex) {
|
||||
};
|
||||
if (nested.contains(FeatureNotAvailableException.class)) {
|
||||
|
@ -67,7 +67,6 @@ class SampleLiquibaseApplicationTests {
|
||||
.contains("Successfully released change log lock");
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
private boolean serverNotRunning(IllegalStateException ex) {
|
||||
NestedCheckedException nested = new NestedCheckedException("failed", ex) {
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user