Fix [serial] compiler warnings
Fix serialization warnings by applying @SuppressWarnings("serial")
when appropriate.
In certain cases and for unknown reasons, a correctly-placed
@SuppressWarnings("serial") annotation will fix the warning at the
javac level (i.e. the Gradle command-line), but will produce an
"unnecessary @SuppressWarnings" warning within Eclipse. In these
cases, a private static final serialVersionUID field has been added
with the default value of 1L.
This commit is contained in:
committed by
Chris Beams
parent
7f0aa5cfb2
commit
b0986049a3
@@ -23,6 +23,7 @@ package org.springframework.jms;
|
||||
* @since 1.1
|
||||
* @see javax.jms.IllegalStateException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class IllegalStateException extends JmsException {
|
||||
|
||||
public IllegalStateException(javax.jms.IllegalStateException cause) {
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.jms;
|
||||
* @since 1.1
|
||||
* @see javax.jms.InvalidClientIDException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class InvalidClientIDException extends JmsException {
|
||||
|
||||
public InvalidClientIDException(javax.jms.InvalidClientIDException cause) {
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.jms;
|
||||
* @since 1.1
|
||||
* @see javax.jms.InvalidDestinationException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class InvalidDestinationException extends JmsException {
|
||||
|
||||
public InvalidDestinationException(javax.jms.InvalidDestinationException cause) {
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.jms;
|
||||
* @since 1.1
|
||||
* @see javax.jms.InvalidSelectorException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class InvalidSelectorException extends JmsException {
|
||||
|
||||
public InvalidSelectorException(javax.jms.InvalidSelectorException cause) {
|
||||
|
||||
@@ -28,6 +28,7 @@ import org.springframework.core.NestedRuntimeException;
|
||||
* @author Juergen Hoeller
|
||||
* @since 1.1
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class JmsException extends NestedRuntimeException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.jms;
|
||||
* @since 1.1
|
||||
* @see javax.jms.JMSSecurityException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class JmsSecurityException extends JmsException {
|
||||
|
||||
public JmsSecurityException(javax.jms.JMSSecurityException cause) {
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.jms;
|
||||
* @since 1.1
|
||||
* @see javax.jms.MessageEOFException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MessageEOFException extends JmsException {
|
||||
|
||||
public MessageEOFException(javax.jms.MessageEOFException cause) {
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.jms;
|
||||
* @since 1.1
|
||||
* @see javax.jms.MessageFormatException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MessageFormatException extends JmsException {
|
||||
|
||||
public MessageFormatException(javax.jms.MessageFormatException cause) {
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.jms;
|
||||
* @since 1.1
|
||||
* @see javax.jms.MessageNotReadableException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MessageNotReadableException extends JmsException {
|
||||
|
||||
public MessageNotReadableException(javax.jms.MessageNotReadableException cause) {
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.jms;
|
||||
* @since 1.1
|
||||
* @see javax.jms.MessageNotWriteableException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MessageNotWriteableException extends JmsException {
|
||||
|
||||
public MessageNotWriteableException(javax.jms.MessageNotWriteableException cause) {
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.jms;
|
||||
* @since 1.1
|
||||
* @see javax.jms.ResourceAllocationException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ResourceAllocationException extends JmsException {
|
||||
|
||||
public ResourceAllocationException(javax.jms.ResourceAllocationException cause) {
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.jms;
|
||||
* @since 1.1
|
||||
* @see javax.jms.TransactionInProgressException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class TransactionInProgressException extends JmsException {
|
||||
|
||||
public TransactionInProgressException(javax.jms.TransactionInProgressException cause) {
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.jms;
|
||||
* @since 1.1
|
||||
* @see javax.jms.TransactionRolledBackException
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class TransactionRolledBackException extends JmsException {
|
||||
|
||||
public TransactionRolledBackException(javax.jms.TransactionRolledBackException cause) {
|
||||
|
||||
@@ -22,6 +22,7 @@ package org.springframework.jms;
|
||||
* @author Juergen Hoeller
|
||||
* @since 1.1
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class UncategorizedJmsException extends JmsException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,6 +42,7 @@ import javax.jms.TopicConnectionFactory;
|
||||
* @deprecated as of Spring 3.0, in favor of the JMS 1.1 based {@link JmsTransactionManager}
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("serial")
|
||||
public class JmsTransactionManager102 extends JmsTransactionManager {
|
||||
|
||||
private boolean pubSubDomain = false;
|
||||
|
||||
@@ -28,6 +28,7 @@ import org.springframework.jms.JmsException;
|
||||
* @since 2.0
|
||||
* @see ConnectionFactoryUtils
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class SynchedLocalTransactionFailedException extends JmsException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ import org.springframework.jms.JmsException;
|
||||
* @since 2.0
|
||||
* @see MessageListenerAdapter
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ListenerExecutionFailedException extends JmsException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -116,6 +116,7 @@ public class JmsMessageEndpointFactory extends AbstractMessageEndpointFactory {
|
||||
* directly, leavng it up to the concrete endpoint to apply those -
|
||||
* and to handle any ResourceExceptions thrown from them.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public static class JmsResourceException extends RuntimeException {
|
||||
|
||||
public JmsResourceException(ResourceException cause) {
|
||||
|
||||
@@ -26,6 +26,7 @@ import org.springframework.jms.JmsException;
|
||||
* @since 1.1
|
||||
* @see MessageConverter
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MessageConversionException extends JmsException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ import org.springframework.jms.JmsException;
|
||||
* @since 1.1
|
||||
* @see DestinationResolver
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DestinationResolutionException extends JmsException {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user