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:
@@ -21,6 +21,7 @@ package org.springframework.amqp;
|
||||
*
|
||||
* @author Mark Fisher
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class AmqpException extends RuntimeException {
|
||||
|
||||
public AmqpException(String message) {
|
||||
|
||||
@@ -24,6 +24,7 @@ import java.io.IOException;
|
||||
*
|
||||
* @author Mark Pollack
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class AmqpIOException extends AmqpException {
|
||||
|
||||
public AmqpIOException(IOException cause) {
|
||||
|
||||
@@ -21,6 +21,7 @@ package org.springframework.amqp;
|
||||
*
|
||||
* @author Mark Pollack
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class AmqpIllegalStateException extends AmqpException {
|
||||
|
||||
public AmqpIllegalStateException(String message) {
|
||||
|
||||
@@ -21,6 +21,7 @@ package org.springframework.amqp;
|
||||
*
|
||||
* @author Mark Pollack
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class AmqpUnsupportedEncodingException extends AmqpException {
|
||||
|
||||
public AmqpUnsupportedEncodingException(Throwable cause) {
|
||||
|
||||
@@ -22,6 +22,7 @@ package org.springframework.amqp;
|
||||
*
|
||||
* @author Mark Pollack
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class UncategorizedAmqpException extends AmqpException {
|
||||
|
||||
public UncategorizedAmqpException(Throwable cause) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,6 +26,7 @@ import org.springframework.amqp.AmqpException;
|
||||
* @since 2.0
|
||||
* @see MessageListenerAdapter
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ListenerExecutionFailedException extends AmqpException {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user