Skip to content

Commit

Permalink
chore: remove redundant wrap method (#40)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun authored Apr 14, 2024
1 parent 4fa729a commit 5f7b231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.

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

0 comments on commit 5f7b231

Please sign in to comment.