Skip to content

Commit 62898ad

Browse files
Squash a few warnings from IDEA
1 parent 066ce86 commit 62898ad

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/test/java/com/rabbitmq/client/test/functional/ConnectionRecovery.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
import java.util.concurrent.atomic.AtomicInteger;
2222
import java.util.concurrent.atomic.AtomicReference;
2323

24+
@SuppressWarnings("ThrowFromFinallyBlock")
2425
public class ConnectionRecovery extends BrokerTestCase {
25-
public static final long RECOVERY_INTERVAL = 2000;
26+
private static final long RECOVERY_INTERVAL = 2000;
2627

2728
public void testConnectionRecovery() throws IOException, InterruptedException {
2829
assertTrue(connection.isOpen());
@@ -211,7 +212,7 @@ public void testClientNamedQueueRecoveryWithNoWait() throws IOException, Interru
211212
testClientNamedQueueRecoveryWith("java-client.test.recovery.q1-nowait", true);
212213
}
213214

214-
protected void testClientNamedQueueRecoveryWith(String q, boolean noWait) throws IOException, InterruptedException, TimeoutException {
215+
private void testClientNamedQueueRecoveryWith(String q, boolean noWait) throws IOException, InterruptedException, TimeoutException {
215216
Channel ch = connection.createChannel();
216217
if(noWait) {
217218
declareClientNamedQueueNoWait(ch, q);
@@ -759,11 +760,11 @@ private void waitForConfirms(Channel ch) throws InterruptedException, TimeoutExc
759760
ch.waitForConfirms(30 * 60 * 1000);
760761
}
761762

762-
protected void assertRecordedQueues(Connection conn, int size) {
763+
private void assertRecordedQueues(Connection conn, int size) {
763764
assertEquals(size, ((AutorecoveringConnection)conn).getRecordedQueues().size());
764765
}
765766

766-
protected void assertRecordedExchanges(Connection conn, int size) {
767+
private void assertRecordedExchanges(Connection conn, int size) {
767768
assertEquals(size, ((AutorecoveringConnection)conn).getRecordedExchanges().size());
768769
}
769770
}

0 commit comments

Comments
 (0)