AMQ-7300 - Remove unnecessary call to sequence updater as read is already volatile

This commit is contained in:
Christopher L. Shannon (cshannon) 2019-09-06 12:19:23 -04:00
parent 4db2656066
commit 65de327369
1 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@
*/
package org.apache.activemq.util;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.AtomicLongFieldUpdater;
/**
@ -35,7 +34,7 @@ public class LongSequenceGenerator {
}
public long getLastSequenceId() {
return SEQUENCE_UPDATER.get(this);
return lastSequenceId;
}
public void setLastSequenceId(long l) {