You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: declarative-config-bridge/src/main/java/io/opentelemetry/contrib/sdk/autoconfigure/ConfigPropertiesTranslator.java
Copy file name to clipboardExpand all lines: declarative-config-bridge/src/main/java/io/opentelemetry/contrib/sdk/autoconfigure/DeclarativeConfigPropertiesBridge.java
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -126,12 +126,11 @@ public Duration getDuration(String propertyName) {
126
126
returnDuration.ofMillis(millis);
127
127
}
128
128
129
-
@SuppressWarnings("unchecked")
130
129
@Override
131
130
publicList<String> getList(StringpropertyName) {
132
-
Objectvalue = translator.get(propertyName);
131
+
List<String>value = translator.get(propertyName);
133
132
if (value != null) {
134
-
return(List<String>) value;
133
+
returnvalue;
135
134
}
136
135
List<String> propertyValue =
137
136
getPropertyValue(
@@ -140,12 +139,11 @@ public List<String> getList(String propertyName) {
0 commit comments