Skip to content

Commit 5d52ebf

Browse files
committed
format
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent a48d200 commit 5d52ebf

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

prometheus-metrics-model/src/main/java/io/prometheus/metrics/model/snapshots/PrometheusNaming.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import io.prometheus.metrics.config.EscapingScheme;
88
import java.nio.charset.StandardCharsets;
9-
import java.util.regex.Pattern;
109
import javax.annotation.Nullable;
1110

1211
/**
@@ -18,16 +17,6 @@
1817
*/
1918
public class PrometheusNaming {
2019

21-
/**
22-
* Legal characters for unit names, including dot.
23-
*
24-
* @deprecated Not used anymore. Kept for backward compatibility. The validation is now done
25-
* without regex for better performance.
26-
*/
27-
@Deprecated
28-
@SuppressWarnings("UnusedVariable")
29-
private static final Pattern UNIT_NAME_PATTERN = Pattern.compile("^[a-zA-Z0-9_.:]+$");
30-
3120
/**
3221
* According to OpenMetrics {@code _count} and {@code _sum} (and {@code _gcount}, {@code _gsum})
3322
* should also be reserved metric name suffixes. However, popular instrumentation libraries have

0 commit comments

Comments
 (0)