You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by jo...@apache.org on 2022/01/24 15:34:47 UTC

[sling-org-apache-sling-commons-metrics] 01/02: SLING-11086 fix javadoc (#2)

This is an automated email from the ASF dual-hosted git repository.

joerghoh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-metrics.git

commit 97b565e08249253fdbee328ba37de700e2cfdf64
Author: Jörg Hoh <jo...@users.noreply.github.com>
AuthorDate: Mon Jan 24 16:31:09 2022 +0100

    SLING-11086 fix javadoc (#2)
---
 src/main/java/org/apache/sling/commons/metrics/Gauge.java          | 2 +-
 src/main/java/org/apache/sling/commons/metrics/MetricsService.java | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/commons/metrics/Gauge.java b/src/main/java/org/apache/sling/commons/metrics/Gauge.java
index c7cae12..6a32dd5 100644
--- a/src/main/java/org/apache/sling/commons/metrics/Gauge.java
+++ b/src/main/java/org/apache/sling/commons/metrics/Gauge.java
@@ -25,7 +25,7 @@ import org.osgi.annotation.versioning.ConsumerType;
 /**
  * A gauge metric is an instantaneous reading of a particular value. 
  * 
- * Since package version 1.3.0 a gauge can directly created via the MetricsService {@see MetricsService#gauge(String,Supplier<T>)},
+ * Since package version 1.3.0 a gauge can directly created via the MetricsService {@link MetricsService#gauge(String,Supplier)},
  * which should be used for the majority of cases.
  * 
  * <p> Nevertheless it's still possible to register a gauge instance with OSGi ServiceRegistry with {@code Gauge#NAME} set
diff --git a/src/main/java/org/apache/sling/commons/metrics/MetricsService.java b/src/main/java/org/apache/sling/commons/metrics/MetricsService.java
index d6548de..f737e86 100644
--- a/src/main/java/org/apache/sling/commons/metrics/MetricsService.java
+++ b/src/main/java/org/apache/sling/commons/metrics/MetricsService.java
@@ -106,6 +106,7 @@ public interface MetricsService {
      * If a gauge with teh same exists already the the same instance is returned.
      * @param name the name of the gauge
      * @param supplier provides the values which are returned by the gauge
+     * @param <T> the type of the metric
      * @return the gauge
      */
     <T> Gauge<T> gauge(String name, Supplier<T> supplier);