Add @SuppressWarnings('serial')
This commit is contained in:
parent
015377f9de
commit
7fa372555b
|
|
@ -81,6 +81,7 @@ public class ParentContextApplicationContextInitializer implements
|
|||
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static class ParentContextAvailableEvent extends ApplicationEvent {
|
||||
|
||||
public ParentContextAvailableEvent(
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ import org.springframework.context.ApplicationEvent;
|
|||
*
|
||||
* @author Dave Syer
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class EmbeddedServletContainerInitializedEvent extends ApplicationEvent {
|
||||
|
||||
private final EmbeddedWebApplicationContext applicationContext;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ import org.springframework.core.env.Environment;
|
|||
*
|
||||
* @author Dave Syer
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ApplicationEnvironmentPreparedEvent extends SpringApplicationEvent {
|
||||
|
||||
private final ConfigurableEnvironment environment;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ import org.springframework.context.ConfigurableApplicationContext;
|
|||
*
|
||||
* @author Dave Syer
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ApplicationFailedEvent extends SpringApplicationEvent {
|
||||
|
||||
private final ConfigurableApplicationContext context;
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ import org.springframework.core.env.Environment;
|
|||
*
|
||||
* @author Dave Syer
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ApplicationPreparedEvent extends SpringApplicationEvent {
|
||||
|
||||
private final ConfigurableApplicationContext context;
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ import org.springframework.core.env.Environment;
|
|||
*
|
||||
* @author Dave Syer
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ApplicationStartedEvent extends SpringApplicationEvent {
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ import org.springframework.context.ApplicationEvent;
|
|||
*
|
||||
* @author Phillip Webb
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class SpringApplicationEvent extends ApplicationEvent {
|
||||
|
||||
private final String[] args;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import org.springframework.util.StringUtils;
|
|||
* @author Phillip Webb
|
||||
* @since 1.2.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class AtomikosConnectionFactoryBean extends
|
||||
com.atomikos.jms.AtomikosConnectionFactoryBean implements BeanNameAware,
|
||||
InitializingBean, DisposableBean {
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import org.springframework.util.StringUtils;
|
|||
* @author Phillip Webb
|
||||
* @since 1.2.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class AtomikosDataSourceBean extends com.atomikos.jdbc.AtomikosDataSourceBean
|
||||
implements BeanNameAware, InitializingBean, DisposableBean {
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ import bitronix.tm.resource.jms.PoolingConnectionFactory;
|
|||
* @author Josh Long
|
||||
* @since 1.2.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class PoolingConnectionFactoryBean extends PoolingConnectionFactory implements
|
||||
BeanNameAware, InitializingBean, DisposableBean {
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ import bitronix.tm.resource.jdbc.PoolingDataSource;
|
|||
* @author Josh Long
|
||||
* @since 1.2.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class PoolingDataSourceBean extends PoolingDataSource implements BeanNameAware,
|
||||
InitializingBean {
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ import org.hibernate.cfg.NamingStrategy;
|
|||
* {@link org.springframework.boot.orm.jpa.hibernate.SpringNamingStrategy}
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("serial")
|
||||
public class SpringNamingStrategy extends
|
||||
org.springframework.boot.orm.jpa.hibernate.SpringNamingStrategy {
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ import org.springframework.util.StringUtils;
|
|||
* @see "http://stackoverflow.com/questions/7689206/ejb3namingstrategy-vs-improvednamingstrategy-foreign-key-naming"
|
||||
* @since 1.2.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class SpringNamingStrategy extends ImprovedNamingStrategy {
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ public class StartUpLoggerTests {
|
|||
|
||||
private final StringBuffer output = new StringBuffer();
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
private final SimpleLog log = new SimpleLog("test") {
|
||||
@Override
|
||||
protected void write(StringBuffer buffer) {
|
||||
|
|
|
|||
|
|
@ -584,6 +584,7 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
|
|||
return new ServletRegistrationBean(new ExampleServlet(), "/hello");
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
private ServletContextInitializer errorServletRegistration() {
|
||||
ServletRegistrationBean bean = new ServletRegistrationBean(new ExampleServlet() {
|
||||
@Override
|
||||
|
|
@ -596,6 +597,7 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
|
|||
return bean;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
private static class InitCountingServlet extends GenericServlet {
|
||||
|
||||
private int initCount;
|
||||
|
|
|
|||
|
|
@ -130,6 +130,7 @@ public class AnnotationConfigEmbeddedWebApplicationContextTests {
|
|||
}
|
||||
|
||||
@Component
|
||||
@SuppressWarnings("serial")
|
||||
protected static class ExampleServletWithAutowired extends GenericServlet {
|
||||
|
||||
@Autowired
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ import javax.servlet.ServletResponse;
|
|||
*
|
||||
* @author Phillip Webb
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ExampleServlet extends GenericServlet {
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ import javax.servlet.ServletResponse;
|
|||
*
|
||||
* @author Phillip Webb
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MockServlet extends GenericServlet {
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ public class AtomikosConnectionFactoryBeanTests {
|
|||
verify(bean).close();
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
private static class MockAtomikosConnectionFactoryBean extends
|
||||
AtomikosConnectionFactoryBean {
|
||||
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ public class AtomikosDataSourceBeanTests {
|
|||
verify(bean).close();
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
private static class MockAtomikosDataSourceBean extends AtomikosDataSourceBean {
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ import static org.mockito.Mockito.verify;
|
|||
*/
|
||||
public class PoolingConnectionFactoryBeanTests {
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
private PoolingConnectionFactoryBean bean = new PoolingConnectionFactoryBean() {
|
||||
@Override
|
||||
public synchronized void init() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue