Skip to content

Commit d27d9a7

Browse files
committed
remove crazy synchronisation
1 parent dae95e0 commit d27d9a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class Confirm extends BrokerTestCase
4949
{
5050
final static int NUM_MESSAGES = 1000;
5151
private static final String TTL_ARG = "x-message-ttl";
52-
private volatile SortedSet<Long> ackSet;
52+
private SortedSet<Long> ackSet;
5353

5454
@Override
5555
protected void setUp() throws IOException {
@@ -276,7 +276,7 @@ private void gotAckForMultiple(long msgSeqNo) {
276276
gotAckFor(i);
277277
}
278278

279-
private synchronized void gotAckFor(long msgSeqNo) {
279+
private void gotAckFor(long msgSeqNo) {
280280
if (!ackSet.contains(msgSeqNo)) {
281281
fail("got duplicate ack: " + msgSeqNo);
282282
}

0 commit comments

Comments
 (0)