From 65de327369f24de008f857211b97d3c69283a932 Mon Sep 17 00:00:00 2001 From: "Christopher L. Shannon (cshannon)" Date: Fri, 6 Sep 2019 12:19:23 -0400 Subject: [PATCH] AMQ-7300 - Remove unnecessary call to sequence updater as read is already volatile --- .../java/org/apache/activemq/util/LongSequenceGenerator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/activemq-client/src/main/java/org/apache/activemq/util/LongSequenceGenerator.java b/activemq-client/src/main/java/org/apache/activemq/util/LongSequenceGenerator.java index f3590a9362..0d7eb0b4f2 100644 --- a/activemq-client/src/main/java/org/apache/activemq/util/LongSequenceGenerator.java +++ b/activemq-client/src/main/java/org/apache/activemq/util/LongSequenceGenerator.java @@ -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) {