From a65b62b4ede204843f5646d1e417e7c75b9c39f8 Mon Sep 17 00:00:00 2001 From: Matt Slonetsky Date: Fri, 7 Dec 2018 09:09:56 -0500 Subject: [PATCH] ARTEMIS-2194 Typo in word 'update' in class MessageCounterInfo --- .../api/core/management/MessageCounterInfo.java | 14 +++++++++++--- .../artemis/jms/example/MessageCounterExample.java | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/MessageCounterInfo.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/MessageCounterInfo.java index b0dd16c749..7b58afcb66 100644 --- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/MessageCounterInfo.java +++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/MessageCounterInfo.java @@ -42,7 +42,7 @@ public final class MessageCounterInfo { private final String lastAddTimestamp; - private final String udpateTimestamp; + private final String updateTimestamp; /** * Returns a MessageCounterInfo corresponding to the JSON serialization returned @@ -82,7 +82,7 @@ public final class MessageCounterInfo { this.depth = depth; this.depthDelta = depthDelta; this.lastAddTimestamp = lastAddTimestamp; - this.udpateTimestamp = udpateTimestamp; + this.updateTimestamp = udpateTimestamp; } // Public -------------------------------------------------------- @@ -146,7 +146,15 @@ public final class MessageCounterInfo { /** * Returns the timestamp of the last time the queue was updated. */ + public String getUpdateTimestamp() { + return updateTimestamp; + } + + /** + * Spelling error in public API. Remove in next major release. + */ + @Deprecated public String getUdpateTimestamp() { - return udpateTimestamp; + return updateTimestamp; } } diff --git a/examples/features/standard/message-counters/src/main/java/org/apache/activemq/artemis/jms/example/MessageCounterExample.java b/examples/features/standard/message-counters/src/main/java/org/apache/activemq/artemis/jms/example/MessageCounterExample.java index 0a8dadce21..72172c2891 100644 --- a/examples/features/standard/message-counters/src/main/java/org/apache/activemq/artemis/jms/example/MessageCounterExample.java +++ b/examples/features/standard/message-counters/src/main/java/org/apache/activemq/artemis/jms/example/MessageCounterExample.java @@ -129,7 +129,7 @@ public class MessageCounterExample { } private static void displayMessageCounter(final MessageCounterInfo counter) { - System.out.format("%s (sample updated at %s)%n", counter.getName(), counter.getUdpateTimestamp()); + System.out.format("%s (sample updated at %s)%n", counter.getName(), counter.getUpdateTimestamp()); System.out.format(" %s message(s) added to the queue (since last sample: %s)%n", counter.getCount(), counter.getCountDelta()); System.out.format(" %s message(s) in the queue (since last sample: %s)%n", counter.getDepth(), counter.getDepthDelta()); System.out.format(" last message added at %s%n%n", counter.getLastAddTimestamp());