Skip to content

Commit aa57880

Browse files
committed
Add @Nullable to equalTo value arg
1 parent 00f950a commit aa57880

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/testing/src/main/java/io/opentelemetry/sdk/testing/assertj/OpenTelemetryAssertions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public static AttributeAssertion satisfies(
240240
* Returns an {@link AttributeAssertion} that asserts the given {@code key} is present with the
241241
* given {@code value}.
242242
*/
243-
public static <T> AttributeAssertion equalTo(AttributeKey<T> key, T value) {
243+
public static <T> AttributeAssertion equalTo(AttributeKey<T> key, @Nullable T value) {
244244
return AttributeAssertion.create(key, val -> val.isEqualTo(value));
245245
}
246246

0 commit comments

Comments
 (0)