Skip to content

Commit 2f07f29

Browse files
author
Steve Powell
committed
Removed all warnings except from test code (still to go);
and properly removed *Properties classes in previous commit.
1 parent 39cf50f commit 2f07f29

20 files changed

+25
-497
lines changed

src/com/rabbitmq/client/AlreadyClosedException.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
* which was already closed
2323
*/
2424
public class AlreadyClosedException extends ShutdownSignalException {
25+
/** Default for suppressing warnings without version check. */
26+
private static final long serialVersionUID = 1L;
27+
2528
public AlreadyClosedException(String s, Object ref)
2629
{
2730
super(true, true, s, ref);

src/com/rabbitmq/client/ConsumerCancelledException.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
public class ConsumerCancelledException extends RuntimeException implements
2222
SensibleClone<ConsumerCancelledException> {
2323

24+
/** Default for non-checking. */
25+
private static final long serialVersionUID = 1L;
26+
2427
@Override
2528
public ConsumerCancelledException sensibleClone() {
2629
try {

src/com/rabbitmq/client/FileProperties.java

Lines changed: 0 additions & 133 deletions
This file was deleted.

src/com/rabbitmq/client/PossibleAuthenticationFailureException.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
*/
2424
public class PossibleAuthenticationFailureException extends IOException
2525
{
26+
/** Default for non-checking. */
27+
private static final long serialVersionUID = 1L;
28+
2629
public PossibleAuthenticationFailureException(Throwable cause)
2730
{
2831
super("Possibly caused by authentication failure");

src/com/rabbitmq/client/ProtocolVersionMismatchException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import com.rabbitmq.client.impl.Version;
2020

21-
import java.io.IOException;
2221
import java.net.ProtocolException;
2322

2423
/**
@@ -27,6 +26,8 @@
2726
*/
2827
public class ProtocolVersionMismatchException extends ProtocolException
2928
{
29+
/** Default serialVersionUID for serializability without version checking. */
30+
private static final long serialVersionUID = 1L;
3031
private Version clientVersion;
3132
private Version serverVersion;
3233

src/com/rabbitmq/client/ShutdownSignalException.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
*/
2828

2929
public class ShutdownSignalException extends RuntimeException implements SensibleClone<ShutdownSignalException> {
30+
/** Default for non-checking. */
31+
private static final long serialVersionUID = 1L;
32+
3033
/** True if the connection is shut down, or false if this signal refers to a channel */
3134
private final boolean _hardError;
3235

src/com/rabbitmq/client/StreamProperties.java

Lines changed: 0 additions & 85 deletions
This file was deleted.

src/com/rabbitmq/client/TestProperties.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/com/rabbitmq/client/TunnelProperties.java

Lines changed: 0 additions & 85 deletions
This file was deleted.

src/com/rabbitmq/client/impl/AMQCommand.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package com.rabbitmq.client.impl;
1818

1919
import java.io.ByteArrayOutputStream;
20-
import java.io.DataInputStream;
2120
import java.io.DataOutputStream;
2221
import java.io.IOException;
2322
import java.util.ArrayList;

0 commit comments

Comments
 (0)