Suppress serialization warnings

All classes that implement java.io.Serializable are now explicitly
marked with @SuppressWarnings("serial").  This serves as an indication
that none of the classes are suitable for transmission across process
boundaries.  This may be revisited over time and as necessary the
annotation may be removed in favor of a generated serialVersionUID.

Until such time, there Spring AMQP maintains no serialization
compatibility guarantees for any class so annotated.
This commit is contained in:
Chris Beams
2010-07-29 17:14:38 +02:00
parent 60db2fd997
commit be3904109e
17 changed files with 18 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ package org.springframework.amqp;
*
* @author Mark Fisher
*/
@SuppressWarnings("serial")
public class AmqpException extends RuntimeException {
public AmqpException(String message) {

View File

@@ -24,6 +24,7 @@ import java.io.IOException;
*
* @author Mark Pollack
*/
@SuppressWarnings("serial")
public class AmqpIOException extends AmqpException {
public AmqpIOException(IOException cause) {

View File

@@ -21,6 +21,7 @@ package org.springframework.amqp;
*
* @author Mark Pollack
*/
@SuppressWarnings("serial")
public class AmqpIllegalStateException extends AmqpException {
public AmqpIllegalStateException(String message) {

View File

@@ -21,6 +21,7 @@ package org.springframework.amqp;
*
* @author Mark Pollack
*/
@SuppressWarnings("serial")
public class AmqpUnsupportedEncodingException extends AmqpException {
public AmqpUnsupportedEncodingException(Throwable cause) {

View File

@@ -22,6 +22,7 @@ package org.springframework.amqp;
*
* @author Mark Pollack
*/
@SuppressWarnings("serial")
public class UncategorizedAmqpException extends AmqpException {
public UncategorizedAmqpException(Throwable cause) {

View File

@@ -21,6 +21,7 @@ import org.springframework.amqp.AmqpException;
/**
* @author Mark Fisher
*/
@SuppressWarnings("serial")
public class MessageConversionException extends AmqpException {
public MessageConversionException(String message, Throwable cause) {

View File

@@ -49,6 +49,7 @@ import com.jgoodies.forms.layout.FormLayout;
* @author Mark Pollack
* @author Mark Fisher
*/
@SuppressWarnings("serial")
public class StockPanel extends JPanel {
private static Log log = LogFactory.getLog(StockPanel.class);

View File

@@ -22,6 +22,7 @@ import com.ericsson.otp.erlang.OtpErlangTuple;
* @author Mark Pollack
*
*/
@SuppressWarnings("serial")
public class ErlangBadRpcException extends OtpException {
private OtpErlangTuple reasonTuple;

View File

@@ -19,9 +19,10 @@ import com.ericsson.otp.erlang.OtpErlangTuple;
/**
* Exception thrown when an 'error' is received from an Erlang RPC call
* @author Mark Pollack
*
* @author Mark Pollack
*/
@SuppressWarnings("serial")
public class ErlangErrorRpcException extends OtpException {
private OtpErlangTuple reasonTuple;

View File

@@ -21,6 +21,7 @@ package org.springframework.erlang;
*
* @author Mark Pollack
*/
@SuppressWarnings("serial")
public class OtpAuthException extends OtpException {
public OtpAuthException(com.ericsson.otp.erlang.OtpAuthException cause) {

View File

@@ -21,6 +21,7 @@ package org.springframework.erlang;
*
* @author Mark Pollack
*/
@SuppressWarnings("serial")
public class OtpException extends RuntimeException {
public OtpException(String message) {

View File

@@ -25,6 +25,7 @@ import java.io.IOException;
* @author Mark Pollack
* @author Mark Fisher
*/
@SuppressWarnings("serial")
public class OtpIOException extends OtpException {
public OtpIOException(IOException cause) {

View File

@@ -22,6 +22,7 @@ package org.springframework.erlang;
*
* @author Mark Pollack
*/
@SuppressWarnings("serial")
public class UncategorizedOtpException extends OtpException {
public UncategorizedOtpException(Throwable cause) {

View File

@@ -21,6 +21,7 @@ import org.springframework.erlang.OtpException;
/**
* @author Mark Pollack
*/
@SuppressWarnings("serial")
public class ErlangConversionException extends OtpException {
public ErlangConversionException(String message, Throwable cause) {

View File

@@ -426,6 +426,7 @@ public abstract class AbstractMessageListenerContainer extends AbstractRabbitLis
* Internal exception class that indicates a rejected message on shutdown.
* Used to trigger a rollback for an external transaction manager in that case.
*/
@SuppressWarnings("serial")
private static class MessageRejectedWhileStoppingException extends RuntimeException {
}

View File

@@ -413,6 +413,7 @@ public abstract class AbstractRabbitListeningContainer extends RabbitAccessor im
* shared Rabbit Connection failed. This is indicating to invokers that they need
* to establish the shared Connection themselves on first access.
*/
@SuppressWarnings("serial")
public static class SharedConnectionNotInitializedException extends RuntimeException {
/**

View File

@@ -26,6 +26,7 @@ import org.springframework.amqp.AmqpException;
* @since 2.0
* @see MessageListenerAdapter
*/
@SuppressWarnings("serial")
public class ListenerExecutionFailedException extends AmqpException {
/**