![JAR search and dependency download from the Maven repository](/logo.png)
io.opentelemetry.sdk.autoconfigure.spi.ConfigUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-sdk-extension-autoconfigure-spi Show documentation
Show all versions of opentelemetry-sdk-extension-autoconfigure-spi Show documentation
OpenTelemetry SDK Auto-configuration SPI
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.sdk.autoconfigure.spi;
import javax.annotation.Nullable;
/**
* Holder for the non-public defaultIfNull method. This serves only to mitigate the method being on
* a public interface.
*/
final class ConfigUtil {
/** Returns defaultValue if value is null, otherwise value. This is an internal method. */
static T defaultIfNull(@Nullable T value, T defaultValue) {
return value == null ? defaultValue : value;
}
private ConfigUtil() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy