Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: remove redundant wrap method #40

Merged
merged 1 commit into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package io.greptime.models;

import com.google.protobuf.ByteStringHelper;
import com.google.protobuf.UnsafeByteOperations;
import io.greptime.v1.Common;
import io.greptime.v1.RowData;

Expand Down Expand Up @@ -71,7 +71,7 @@ public static void addValue(
valueBuilder.setBoolValue((boolean) value);
break;
case BINARY:
valueBuilder.setBinaryValue(ByteStringHelper.wrap((byte[]) value));
valueBuilder.setBinaryValue(UnsafeByteOperations.unsafeWrap((byte[]) value));
break;
case STRING:
valueBuilder.setStringValue((String) value);
Expand Down