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.expression;
|
||||
* @author Andy Clement
|
||||
* @since 3.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class AccessException extends Exception {
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,6 +22,7 @@ package org.springframework.expression;
|
||||
* @author Andy Clement
|
||||
* @since 3.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class EvaluationException extends ExpressionException {
|
||||
|
||||
/**
|
||||
@@ -64,4 +65,4 @@ public class EvaluationException extends ExpressionException {
|
||||
super(message,cause);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.expression;
|
||||
* @author Andy Clement
|
||||
* @since 3.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ExpressionException extends RuntimeException {
|
||||
|
||||
protected String expressionString;
|
||||
|
||||
@@ -24,6 +24,7 @@ package org.springframework.expression;
|
||||
* @author Andy Clement
|
||||
* @since 3.0.3
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ExpressionInvocationTargetException extends EvaluationException {
|
||||
|
||||
public ExpressionInvocationTargetException(int position, String message, Throwable cause) {
|
||||
|
||||
@@ -22,6 +22,7 @@ package org.springframework.expression;
|
||||
* @author Andy Clement
|
||||
* @since 3.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ParseException extends ExpressionException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ import org.springframework.expression.spel.SpelParseException;
|
||||
* @author Andy Clement
|
||||
* @since 3.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class InternalParseException extends RuntimeException {
|
||||
|
||||
public InternalParseException(SpelParseException cause) {
|
||||
|
||||
@@ -25,6 +25,7 @@ import org.springframework.expression.EvaluationException;
|
||||
* @author Andy Clement
|
||||
* @since 3.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class SpelEvaluationException extends EvaluationException {
|
||||
|
||||
private SpelMessage message;
|
||||
|
||||
@@ -26,6 +26,7 @@ import org.springframework.expression.ParseException;
|
||||
* @author Andy Clement
|
||||
* @since 3.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class SpelParseException extends ParseException {
|
||||
|
||||
private SpelMessage message;
|
||||
|
||||
@@ -49,6 +49,7 @@ public class ConstructorInvocationTests extends ExpressionTestCase {
|
||||
evaluateAndCheckError("new FooBar()",SpelMessage.CONSTRUCTOR_INVOCATION_PROBLEM);
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
static class TestException extends Exception {
|
||||
|
||||
}
|
||||
|
||||
@@ -111,6 +111,7 @@ public class Inventor {
|
||||
return valueIn;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
static class TestException extends Exception {}
|
||||
|
||||
public String throwException(PlaceOfBirth pob) {
|
||||
|
||||
Reference in New Issue
Block a user