ARTEMIS-2194 Typo in word 'update' in class MessageCounterInfo

This commit is contained in:
Matt Slonetsky 2018-12-07 09:09:56 -05:00 committed by Justin Bertram
parent 7c1508e7c4
commit a65b62b4ed
2 changed files with 12 additions and 4 deletions

View File

@ -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;
}
}

View File

@ -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());