mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 23:16:52 +00:00
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…
x
Reference in New Issue
Block a user