Skip to content

Commit

Permalink
Move constants to begining of class
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilan Olkies committed Jan 11, 2024
1 parent 026f190 commit 9d2b652
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rskj-core/src/test/java/org/ethereum/util/RLPTestUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

public class RLPTestUtil {

private static final int OFFSET_SHORT_ITEM = 0x80;
private static final int OFFSET_LONG_ITEM = 0xb7;

public static byte[] encode(Object input) {
Value val = new Value(input);
if (val.isList()) {
Expand Down Expand Up @@ -46,9 +49,6 @@ private static byte[] toBytes(Object input) {
throw new RuntimeException("Unsupported type: Only accepting String, Integer and BigInteger for now");
}

private static final int OFFSET_SHORT_ITEM = 0x80;
private static final int OFFSET_LONG_ITEM = 0xb7;

public static int decodeInt(byte[] data, int index) {
int b0 = data[index] & 0xFF;

Expand Down

0 comments on commit 9d2b652

Please sign in to comment.