mirror of https://github.com/apache/activemq.git
AMQ-7300 - Remove unnecessary call to sequence updater as read is already volatile
This commit is contained in:
parent
4db2656066
commit
65de327369
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue