Fix [serial] compiler warnings
Fix serialization warnings by applying @SuppressWarnings("serial")
when appropriate.
In certain cases and for unknown reasons, a correctly-placed
@SuppressWarnings("serial") annotation will fix the warning at the
javac level (i.e. the Gradle command-line), but will produce an
"unnecessary @SuppressWarnings" warning within Eclipse. In these
cases, a private static final serialVersionUID field has been added
with the default value of 1L.
This commit is contained in:
committed by
Chris Beams
parent
7f0aa5cfb2
commit
b0986049a3
@@ -22,6 +22,7 @@ package org.springframework.mail;
|
||||
* @author Dmitriy Kopylenko
|
||||
* @author Juergen Hoeller
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MailAuthenticationException extends MailException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ import org.springframework.core.NestedRuntimeException;
|
||||
*
|
||||
* @author Dmitriy Kopylenko
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class MailException extends NestedRuntimeException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,6 +22,7 @@ package org.springframework.mail;
|
||||
* @author Dmitriy Kopylenko
|
||||
* @author Juergen Hoeller
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MailParseException extends MailException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ package org.springframework.mail;
|
||||
* @see org.springframework.ui.velocity.VelocityEngineUtils#mergeTemplateIntoString
|
||||
* @see org.springframework.ui.freemarker.FreeMarkerTemplateUtils#processTemplateIntoString
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MailPreparationException extends MailException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,6 +30,7 @@ import org.springframework.util.ObjectUtils;
|
||||
* @author Dmitriy Kopylenko
|
||||
* @author Juergen Hoeller
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MailSendException extends MailException {
|
||||
|
||||
private transient final Map<Object, Exception> failedMessages;
|
||||
|
||||
@@ -39,6 +39,7 @@ import org.springframework.util.Assert;
|
||||
* @see org.springframework.mail.javamail.MimeMessageHelper
|
||||
* @see org.springframework.mail.javamail.MimeMailMessage
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class SimpleMailMessage implements MailMessage, Serializable {
|
||||
|
||||
private String from;
|
||||
|
||||
@@ -61,6 +61,7 @@ import org.springframework.util.Assert;
|
||||
* @see SchedulerFactoryBean#setJobDetails
|
||||
* @see SimpleTriggerBean
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CronTriggerBean extends CronTrigger
|
||||
implements JobDetailAwareTrigger, BeanNameAware, InitializingBean {
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ import org.springframework.context.ApplicationContextAware;
|
||||
* @see org.springframework.beans.factory.BeanNameAware
|
||||
* @see org.quartz.Scheduler#DEFAULT_GROUP
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class JobDetailBean extends JobDetail
|
||||
implements BeanNameAware, ApplicationContextAware, InitializingBean {
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ import org.springframework.util.MethodInvoker;
|
||||
* @since 2.5.3
|
||||
* @see MethodInvokingJobDetailFactoryBean
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class JobMethodInvocationFailedException extends NestedRuntimeException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,6 +60,7 @@ import org.springframework.core.Constants;
|
||||
* @see SchedulerFactoryBean#setJobDetails
|
||||
* @see CronTriggerBean
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class SimpleTriggerBean extends SimpleTrigger
|
||||
implements JobDetailAwareTrigger, BeanNameAware, InitializingBean {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user