From 0ee7e07502e4ec336433af1d48925373299b16bd Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Wed, 30 Aug 2017 13:50:33 +1200 Subject: [PATCH] Fix trivial typos Hi, found some trivial typos in Javadocs. Not sure if a JIRA ticket or something else is necessary. If so let me know and I'll update the PR or create a new one. Thanks! Bruno --- .../server/state/services/MetricsRetrievalService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ambari-server/src/main/java/org/apache/ambari/server/state/services/MetricsRetrievalService.java b/ambari-server/src/main/java/org/apache/ambari/server/state/services/MetricsRetrievalService.java index 510e7067f78..7ba2e1a1331 100644 --- a/ambari-server/src/main/java/org/apache/ambari/server/state/services/MetricsRetrievalService.java +++ b/ambari-server/src/main/java/org/apache/ambari/server/state/services/MetricsRetrievalService.java @@ -59,7 +59,7 @@ * The {@link MetricsRetrievalService} is used as a headless, autonomous service * which encapsulates: * @@ -270,7 +270,7 @@ protected void doStop() { * {@link #getCachedRESTMetric(String)}, depending on the type of metric * requested. *

- * Callers need not worry about invoking this mulitple times for the same URL + * Callers need not worry about invoking this multiple times for the same URL * endpoint. A single endpoint will only be enqueued once regardless of how * many times this method is called until it has been fully retrieved and * parsed. If the last endpoint request was too recent, then this method will @@ -349,7 +349,7 @@ public JMXMetricHolder getCachedJMXMetric(String jmxUrl) { * Gets a cached REST metric in the form of a {@link Map}. If there is no * metric data cached for the given URL, then {@code null} is returned. *

- * The onky way this cache is populated is by requesting the data to be loaded + * The only way this cache is populated is by requesting the data to be loaded * asynchronously via * {@link #submitRequest(MetricSourceType, StreamProvider, String)} with the * {@link MetricSourceType#REST} type. @@ -363,7 +363,7 @@ public Map getCachedRESTMetric(String restUrl) { } /** - * Encapsulates the common logic for all metric {@link Runnable} instnaces. + * Encapsulates the common logic for all metric {@link Runnable} instances. */ private static abstract class MetricRunnable implements Runnable {