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
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -126,11 +126,12 @@ public Duration getDuration(String propertyName) {
126
126
returnDuration.ofMillis(millis);
127
127
}
128
128
129
+
@SuppressWarnings("unchecked")
129
130
@Override
130
131
publicList<String> getList(StringpropertyName) {
131
-
List<String>value = translator.get(propertyName);
132
+
Objectvalue = translator.get(propertyName);
132
133
if (value != null) {
133
-
returnvalue;
134
+
return(List<String>) value;
134
135
}
135
136
List<String> propertyValue =
136
137
getPropertyValue(
@@ -139,11 +140,12 @@ public List<String> getList(String propertyName) {
0 commit comments