Skip to content

Commit

Permalink
add raw byte[] support to Entity
Browse files Browse the repository at this point in the history
  • Loading branch information
pdowler committed Dec 13, 2023
1 parent bc5d642 commit 5eabe79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cadc-util/src/main/java/org/opencadc/persist/Entity.java
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@ protected byte[] primitiveValueToBytes(Object o, String name, String digestAlg)
ret = new byte[16];
System.arraycopy(msb, 0, ret, 0, 8);
System.arraycopy(lsb, 0, ret, 8, 8);
} else if (o instanceof byte[]) {
byte[] bytes = (byte[]) o;
return bytes;
}

if (ret != null) {
Expand Down

0 comments on commit 5eabe79

Please sign in to comment.