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:
@@ -22,6 +22,7 @@ import com.ericsson.otp.erlang.OtpErlangTuple;
|
||||
* @author Mark Pollack
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ErlangBadRpcException extends OtpException {
|
||||
|
||||
private OtpErlangTuple reasonTuple;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -21,6 +21,7 @@ package org.springframework.erlang;
|
||||
*
|
||||
* @author Mark Pollack
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class OtpException extends RuntimeException {
|
||||
|
||||
public OtpException(String message) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -22,6 +22,7 @@ package org.springframework.erlang;
|
||||
*
|
||||
* @author Mark Pollack
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class UncategorizedOtpException extends OtpException {
|
||||
|
||||
public UncategorizedOtpException(Throwable cause) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user