Skip to content

Commit f6d4376

Browse files
committed
pr review
1 parent 7c867c7 commit f6d4376

File tree

1 file changed

+2
-2
lines changed
  • instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/properties

1 file changed

+2
-2
lines changed

instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/properties/SpringConfigProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public List<String> getList(String name) {
210210
}
211211

212212
List<String> envValue = (List<String>) environment.getProperty(normalizedName, List.class);
213-
return mustOr(envValue, otelSdkProperties.getList(name));
213+
return orNonNull(envValue, otelSdkProperties.getList(name));
214214
}
215215

216216
@Nullable
@@ -282,7 +282,7 @@ private static <T> T or(@Nullable T first, @Nullable T second) {
282282
return first != null ? first : second;
283283
}
284284

285-
private static <T> T mustOr(@Nullable T first, T second) {
285+
private static <T> T orNonNull(@Nullable T first, T second) {
286286
return first != null ? first : second;
287287
}
288288
}

0 commit comments

Comments
 (0)