Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Aug 28, 2024
1 parent 77aa9bf commit 0ec8dbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/esaulpaugh/headlong/abi/ABIType.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,8 @@ public final void encode(J value, ByteBuffer dest) {
* @return the encoding
*/
public final ByteBuffer encodePacked(J value) {
validate(value);
ByteBuffer dest = ByteBuffer.allocate(byteLengthPacked(value));
encodePackedUnchecked(value, dest);
encodePacked(value, dest);
dest.flip();
return dest;
}
Expand Down

0 comments on commit 0ec8dbd

Please sign in to comment.