Skip to content

Commit fc212f9

Browse files
committed
spotless
1 parent e34b1d7 commit fc212f9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

api/all/src/test/java/io/opentelemetry/api/logs/ValueTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,13 @@ void valueByteAsString() {
220220
@MethodSource("convertArgs")
221221
void convert(Object object, Value<?> expected) {
222222
Value<?> converted = Value.convert(object);
223-
if (Objects.requireNonNull(expected.getType()) == ValueType.DOUBLE) {
224-
assertThat(converted.getType()).isEqualTo(ValueType.DOUBLE);
225-
assertThat((Double) converted.getValue())
226-
.isEqualTo((Double) expected.getValue(), Offset.offset(.001));
227-
} else {
228-
assertThat(converted).isEqualTo(expected);
229-
}
223+
if (Objects.requireNonNull(expected.getType()) == ValueType.DOUBLE) {
224+
assertThat(converted.getType()).isEqualTo(ValueType.DOUBLE);
225+
assertThat((Double) converted.getValue())
226+
.isEqualTo((Double) expected.getValue(), Offset.offset(.001));
227+
} else {
228+
assertThat(converted).isEqualTo(expected);
229+
}
230230
}
231231

232232
@SuppressWarnings("cast")

0 commit comments

Comments
 (0)