You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/18 23:19:19 UTC
[sling-org-apache-sling-commons-metrics] 31/44: SLING-6596 - typo:
guage -> gauge
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-metrics.git
commit 31cc54d19db301533a6f878bb655bdd4385d2285
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Mar 3 08:45:17 2017 +0000
SLING-6596 - typo: guage -> gauge
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1785238 13f79535-47bb-0310-9956-ffa450edef68
---
.../org/apache/sling/commons/metrics/internal/JSONReporter.java | 4 ++--
.../sling/commons/metrics/internal/MetricWebConsolePlugin.java | 4 ++--
.../apache/sling/commons/metrics/internal/JSONReporterTest.java | 8 ++++----
.../commons/metrics/internal/MetricWebConsolePluginTest.java | 4 ++--
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/main/java/org/apache/sling/commons/metrics/internal/JSONReporter.java b/src/main/java/org/apache/sling/commons/metrics/internal/JSONReporter.java
index 8e630d0..c7a439f 100644
--- a/src/main/java/org/apache/sling/commons/metrics/internal/JSONReporter.java
+++ b/src/main/java/org/apache/sling/commons/metrics/internal/JSONReporter.java
@@ -13,7 +13,7 @@
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
+ * specific langauge governing permissions and limitations
* under the License.
*/
@@ -163,7 +163,7 @@ class JSONReporter implements Reporter, Closeable {
SortedMap<String, Timer> timers) throws IOException {
json.object();
if (!gauges.isEmpty()) {
- json.key("guages").object();
+ json.key("gauges").object();
for (Map.Entry<String, Gauge> entry : gauges.entrySet()) {
printGauge(entry);
}
diff --git a/src/main/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePlugin.java b/src/main/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePlugin.java
index 0ebc173..70a7581 100644
--- a/src/main/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePlugin.java
+++ b/src/main/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePlugin.java
@@ -13,7 +13,7 @@
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
+ * specific langauge governing permissions and limitations
* under the License.
*/
@@ -397,7 +397,7 @@ public class MetricWebConsolePlugin extends HttpServlet implements
pw.println("<br>");
pw.println("<div class='table'>");
pw.println("<div class='ui-widget-header ui-corner-top buttonGroup'>Gauges</div>");
- pw.println("<table class='nicetable' id='data-guages'>");
+ pw.println("<table class='nicetable' id='data-gauges'>");
pw.println("<thead>");
pw.println("<tr>");
pw.println("<th class='header'>Name</th>");
diff --git a/src/test/java/org/apache/sling/commons/metrics/internal/JSONReporterTest.java b/src/test/java/org/apache/sling/commons/metrics/internal/JSONReporterTest.java
index 49a6b46..d05c175 100644
--- a/src/test/java/org/apache/sling/commons/metrics/internal/JSONReporterTest.java
+++ b/src/test/java/org/apache/sling/commons/metrics/internal/JSONReporterTest.java
@@ -13,7 +13,7 @@
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
+ * specific langauge governing permissions and limitations
* under the License.
*/
@@ -49,7 +49,7 @@ public class JSONReporterTest {
Map<String, Object> json = getJSON(registry);
assertTrue(json.containsKey("meters"));
- assertTrue(json.containsKey("guages"));
+ assertTrue(json.containsKey("gauges"));
assertTrue(json.containsKey("timers"));
assertTrue(json.containsKey("counters"));
assertTrue(json.containsKey("histograms"));
@@ -75,7 +75,7 @@ public class JSONReporterTest {
Map<String, Object> json = getJSON(registry);
- assertTrue(((Map<String, Object>)json.get("guages")).containsKey("test"));
+ assertTrue(((Map<String, Object>)json.get("gauges")).containsKey("test"));
}
private static Map<String, Object> getJSON(MetricRegistry registry) throws IOException {
@@ -88,4 +88,4 @@ public class JSONReporterTest {
return new JSONParser(sw.toString()).getParsed();
}
-}
\ No newline at end of file
+}
diff --git a/src/test/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePluginTest.java b/src/test/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePluginTest.java
index 296c9e6..56e44bc 100644
--- a/src/test/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePluginTest.java
+++ b/src/test/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePluginTest.java
@@ -13,7 +13,7 @@
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
+ * specific langauge governing permissions and limitations
* under the License.
*/
@@ -145,7 +145,7 @@ public class MetricWebConsolePluginTest {
assertTable("data-counters", page);
assertTable("data-timers", page);
assertTable("data-histograms", page);
- assertTable("data-guages", page);
+ assertTable("data-gauges", page);
}
private void assertTable(String name, HtmlPage page) {
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.