Skip to content

Commit e01634f

Browse files
committed
fix tests
1 parent b343007 commit e01634f

File tree

1 file changed

+2
-5
lines changed
  • fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/query/plan/cascades/values

1 file changed

+2
-5
lines changed

fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/query/plan/cascades/values/FieldValue.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
import com.google.common.collect.Iterables;
5555
import com.google.common.primitives.ImmutableIntArray;
5656
import com.google.protobuf.ByteString;
57-
import com.google.protobuf.DynamicMessage;
5857
import com.google.protobuf.Message;
5958

6059
import javax.annotation.Nonnull;
@@ -177,10 +176,8 @@ private static Object unwrapPrimitive(@Nonnull Type type, @Nullable Object field
177176
} else if (type.getTypeCode() == Type.TypeCode.VERSION) {
178177
return FDBRecordVersion.fromBytes(((ByteString)fieldValue).toByteArray(), false);
179178
} else if (type.isUuid()) {
180-
Verify.verify(fieldValue instanceof DynamicMessage);
181-
final var message = (DynamicMessage) fieldValue;
182-
return new UUID((Long) message.getField(message.getDescriptorForType().findFieldByName("most_significant_bits")),
183-
(Long) message.getField(message.getDescriptorForType().findFieldByName("least_significant_bits")));
179+
Verify.verify(fieldValue instanceof UUID);
180+
return fieldValue;
184181
} else {
185182
// This also may need to turn ByteString's into byte[] for Type.TypeCode.BYTES
186183
return fieldValue;

0 commit comments

Comments
 (0)