Skip to content

Commit b7aaa52

Browse files
committed
Fixed few warnings
1 parent 8d93dbf commit b7aaa52

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/yaml/JmxRule.java

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public class JmxRule extends MetricStructure {
4747
@Nullable private String prefix;
4848
private Map<String, Metric> mapping;
4949

50+
@Nullable
5051
public String getBean() {
5152
return bean;
5253
}
@@ -90,6 +91,7 @@ private String validatePrefix(String prefix) {
9091
return prefix;
9192
}
9293

94+
@Nullable
9395
public String getPrefix() {
9496
return prefix;
9597
}

instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/yaml/Metric.java

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class Metric extends MetricStructure {
2121
@Nullable private String metric;
2222
@Nullable private String desc;
2323

24+
@Nullable
2425
public String getMetric() {
2526
return metric;
2627
}
@@ -35,6 +36,7 @@ private String validateMetricName(String name) {
3536
return name;
3637
}
3738

39+
@Nullable
3840
public String getDesc() {
3941
return desc;
4042
}

0 commit comments

Comments
 (0)