You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2017/03/03 08:45:18 UTC
svn commit: r1785238 - in /sling/trunk/bundles/commons/metrics/src:
main/java/org/apache/sling/commons/metrics/internal/
test/java/org/apache/sling/commons/metrics/internal/
Author: bdelacretaz
Date: Fri Mar 3 08:45:17 2017
New Revision: 1785238
URL: http://svn.apache.org/viewvc?rev=1785238&view=rev
Log:
SLING-6596 - typo: guage -> gauge
Modified:
sling/trunk/bundles/commons/metrics/src/main/java/org/apache/sling/commons/metrics/internal/JSONReporter.java
sling/trunk/bundles/commons/metrics/src/main/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePlugin.java
sling/trunk/bundles/commons/metrics/src/test/java/org/apache/sling/commons/metrics/internal/JSONReporterTest.java
sling/trunk/bundles/commons/metrics/src/test/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePluginTest.java
Modified: sling/trunk/bundles/commons/metrics/src/main/java/org/apache/sling/commons/metrics/internal/JSONReporter.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/metrics/src/main/java/org/apache/sling/commons/metrics/internal/JSONReporter.java?rev=1785238&r1=1785237&r2=1785238&view=diff
==============================================================================
--- sling/trunk/bundles/commons/metrics/src/main/java/org/apache/sling/commons/metrics/internal/JSONReporter.java (original)
+++ sling/trunk/bundles/commons/metrics/src/main/java/org/apache/sling/commons/metrics/internal/JSONReporter.java Fri Mar 3 08:45:17 2017
@@ -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,
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);
}
Modified: sling/trunk/bundles/commons/metrics/src/main/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePlugin.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/metrics/src/main/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePlugin.java?rev=1785238&r1=1785237&r2=1785238&view=diff
==============================================================================
--- sling/trunk/bundles/commons/metrics/src/main/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePlugin.java (original)
+++ sling/trunk/bundles/commons/metrics/src/main/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePlugin.java Fri Mar 3 08:45:17 2017
@@ -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 exte
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>");
Modified: sling/trunk/bundles/commons/metrics/src/test/java/org/apache/sling/commons/metrics/internal/JSONReporterTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/metrics/src/test/java/org/apache/sling/commons/metrics/internal/JSONReporterTest.java?rev=1785238&r1=1785237&r2=1785238&view=diff
==============================================================================
--- sling/trunk/bundles/commons/metrics/src/test/java/org/apache/sling/commons/metrics/internal/JSONReporterTest.java (original)
+++ sling/trunk/bundles/commons/metrics/src/test/java/org/apache/sling/commons/metrics/internal/JSONReporterTest.java Fri Mar 3 08:45:17 2017
@@ -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
+}
Modified: sling/trunk/bundles/commons/metrics/src/test/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePluginTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/metrics/src/test/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePluginTest.java?rev=1785238&r1=1785237&r2=1785238&view=diff
==============================================================================
--- sling/trunk/bundles/commons/metrics/src/test/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePluginTest.java (original)
+++ sling/trunk/bundles/commons/metrics/src/test/java/org/apache/sling/commons/metrics/internal/MetricWebConsolePluginTest.java Fri Mar 3 08:45:17 2017
@@ -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) {