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:
Phillip Webb
2012-12-19 14:35:57 -08:00
committed by Chris Beams
parent 7f0aa5cfb2
commit b0986049a3
550 changed files with 705 additions and 36 deletions

View File

@@ -115,6 +115,7 @@ public class TrickyAspectJPointcutExpressionTests {
}
@SuppressWarnings("serial")
public static class TestException extends RuntimeException {
public TestException(String string) {

View File

@@ -80,6 +80,7 @@ public final class LazyInitTargetSourceTests {
}
@SuppressWarnings("serial")
public static class CustomLazyInitTargetSource extends LazyInitTargetSource {
protected void postProcessTargetObject(Object targetObject) {

View File

@@ -62,6 +62,8 @@ public final class PrototypeBasedTargetSourceTests {
private static class TestTargetSource extends AbstractPrototypeBasedTargetSource {
private static final long serialVersionUID = 1L;
/**
* Nonserializable test field to check that subclass
* state can't prevent serialization from working
@@ -77,4 +79,4 @@ public final class PrototypeBasedTargetSourceTests {
}
}
}
}