We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@Nullable
1 parent 00f950a commit aa57880Copy full SHA for aa57880
1 file changed
sdk/testing/src/main/java/io/opentelemetry/sdk/testing/assertj/OpenTelemetryAssertions.java
@@ -240,7 +240,7 @@ public static AttributeAssertion satisfies(
240
* Returns an {@link AttributeAssertion} that asserts the given {@code key} is present with the
241
* given {@code value}.
242
*/
243
- public static <T> AttributeAssertion equalTo(AttributeKey<T> key, T value) {
+ public static <T> AttributeAssertion equalTo(AttributeKey<T> key, @Nullable T value) {
244
return AttributeAssertion.create(key, val -> val.isEqualTo(value));
245
}
246
0 commit comments