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

@@ -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) {