Permalink
Browse files

Supress serialization warnings

  • Loading branch information...
1 parent 4bd2976 commit a97db67845a696cd4a3308e9461bd32094138335 @dsyer dsyer committed Mar 25, 2011
@@ -132,6 +132,7 @@ final public C getDefault() {
* @author Dave Syer
*
*/
+ @SuppressWarnings("serial")
private static class ClassComparator implements Comparator<Class<?>>, Serializable {
/**
* @return 1 if arg0 is assignable from arg1, -1 otherwise
@@ -16,6 +16,7 @@
package org.springframework.retry;
+@SuppressWarnings("serial")
public class ExhaustedRetryException extends RetryException {
public ExhaustedRetryException(String msg, Throwable cause) {
@@ -18,6 +18,7 @@
import org.springframework.core.NestedRuntimeException;
+@SuppressWarnings("serial")
public class RetryException extends NestedRuntimeException {
public RetryException(String msg, Throwable cause) {
@@ -16,6 +16,7 @@
package org.springframework.retry;
+@SuppressWarnings("serial")
public class TerminatedRetryException extends RetryException {
public TerminatedRetryException(String msg, Throwable cause) {
@@ -26,6 +26,7 @@
* @author Rob Harrop
* @since 2.1
*/
+@SuppressWarnings("serial")
public class BackOffInterruptedException extends RetryException {
public BackOffInterruptedException(String msg) {
@@ -20,6 +20,7 @@
import org.springframework.retry.RetryContext;
import org.springframework.retry.RetryPolicy;
+@SuppressWarnings("serial")
public class RetryContextSupport extends AttributeAccessorSupport implements RetryContext {
private boolean terminate = false;
@@ -117,6 +117,7 @@ public void registerThrowable(RetryContext context, Throwable throwable) {
((RetryContextSupport) context).registerThrowable(throwable);
}
+ @SuppressWarnings("serial")
private class CompositeRetryContext extends RetryContextSupport {
RetryContext[] contexts;
@@ -105,6 +105,7 @@ public void registerThrowable(RetryContext context, Throwable throwable) {
((RetryContextSupport) context).registerThrowable(throwable);
}
+ @SuppressWarnings("serial")
private static class ExceptionClassifierRetryContext extends RetryContextSupport implements RetryPolicy {
final private Classifier<Throwable, RetryPolicy> exceptionClassifier;
@@ -80,6 +80,7 @@ public void registerThrowable(RetryContext context, Throwable throwable) {
* @author Dave Syer
*
*/
+ @SuppressWarnings("serial")
private static class NeverRetryContext extends RetryContextSupport {
private boolean finished = false;
@@ -28,6 +28,7 @@
* @author Dave Syer
*
*/
+@SuppressWarnings("serial")
public class RetryCacheCapacityExceededException extends RetryException {
/**
@@ -133,6 +133,7 @@ public RetryContext open(RetryContext parent) {
return new SimpleRetryContext(parent);
}
+ @SuppressWarnings("serial")
private static class SimpleRetryContext extends RetryContextSupport {
public SimpleRetryContext(RetryContext parent) {
super(parent);
@@ -75,6 +75,7 @@ public void registerThrowable(RetryContext context, Throwable throwable) {
// otherwise no-op - we only time out, otherwise retry everything...
}
+ @SuppressWarnings("serial")
private static class TimeoutRetryContext extends RetryContextSupport {
private long timeout;
@@ -71,6 +71,7 @@ public void testClassifySuperclassDoesNotMatch() {
assertEquals(classifier.getDefault(), classifier.classify(new RuntimeException("Foo")));
}
+ @SuppressWarnings("serial")
@Test
public void testClassifyAncestorMatch() {
classifier.setTypeMap(new HashMap<Class<? extends Throwable>, String>() {
@@ -8,6 +8,7 @@
import org.springframework.transaction.support.DefaultTransactionStatus;
import org.springframework.transaction.support.TransactionSynchronizationManager;
+@SuppressWarnings("serial")
public class ResourcelessTransactionManager extends AbstractPlatformTransactionManager {
protected void doBegin(Object transaction, TransactionDefinition definition) throws TransactionException {

0 comments on commit a97db67

Please sign in to comment.