From 14860c86cbb076367f6f73a61a47662f4f640101 Mon Sep 17 00:00:00 2001 From: Evan Saulpaugh Date: Fri, 18 Oct 2024 00:51:00 -0500 Subject: [PATCH] minor refactors --- src/main/java/com/esaulpaugh/headlong/cli/Main.java | 6 +++--- src/test/java/com/esaulpaugh/headlong/cli/DesugarTest.java | 2 +- src/test/java/com/esaulpaugh/headlong/cli/MainTest.java | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/esaulpaugh/headlong/cli/Main.java b/src/main/java/com/esaulpaugh/headlong/cli/Main.java index 0932829..6e51ee1 100644 --- a/src/main/java/com/esaulpaugh/headlong/cli/Main.java +++ b/src/main/java/com/esaulpaugh/headlong/cli/Main.java @@ -20,13 +20,13 @@ import com.esaulpaugh.headlong.abi.ABIType; import com.esaulpaugh.headlong.abi.Address; import com.esaulpaugh.headlong.abi.Function; +import com.esaulpaugh.headlong.abi.SuperSerial; import com.esaulpaugh.headlong.abi.Tuple; import com.esaulpaugh.headlong.abi.TupleType; -import com.esaulpaugh.headlong.util.Uint; import com.esaulpaugh.headlong.rlp.Notation; import com.esaulpaugh.headlong.rlp.RLPEncoder; import com.esaulpaugh.headlong.util.Strings; -import com.esaulpaugh.headlong.abi.SuperSerial; +import com.esaulpaugh.headlong.util.Uint; import java.math.BigInteger; import java.net.URL; @@ -342,7 +342,7 @@ private static String describe(ABIObject o) { throw new AssertionError(); } - private static String getParamNames(TupleType params) { + private static String getParamNames(TupleType params) { boolean hasName = false; final int size = params.size(); for (int i = 0; i < size; i++) { diff --git a/src/test/java/com/esaulpaugh/headlong/cli/DesugarTest.java b/src/test/java/com/esaulpaugh/headlong/cli/DesugarTest.java index 0a3628a..001ef40 100644 --- a/src/test/java/com/esaulpaugh/headlong/cli/DesugarTest.java +++ b/src/test/java/com/esaulpaugh/headlong/cli/DesugarTest.java @@ -17,10 +17,10 @@ import com.esaulpaugh.headlong.abi.Function; import com.esaulpaugh.headlong.abi.Single; +import com.esaulpaugh.headlong.abi.SuperSerial; import com.esaulpaugh.headlong.abi.Tuple; import com.esaulpaugh.headlong.abi.TupleType; import com.esaulpaugh.headlong.util.FastHex; -import com.esaulpaugh.headlong.abi.SuperSerial; import org.junit.jupiter.api.Test; import java.math.BigInteger; diff --git a/src/test/java/com/esaulpaugh/headlong/cli/MainTest.java b/src/test/java/com/esaulpaugh/headlong/cli/MainTest.java index 0a4d445..3448113 100644 --- a/src/test/java/com/esaulpaugh/headlong/cli/MainTest.java +++ b/src/test/java/com/esaulpaugh/headlong/cli/MainTest.java @@ -21,12 +21,11 @@ import com.esaulpaugh.headlong.abi.ByteType; import com.esaulpaugh.headlong.abi.Function; import com.esaulpaugh.headlong.abi.Single; -import com.esaulpaugh.headlong.abi.Triple; +import com.esaulpaugh.headlong.abi.SuperSerial; import com.esaulpaugh.headlong.abi.Tuple; import com.esaulpaugh.headlong.abi.TupleType; import com.esaulpaugh.headlong.abi.TypeFactory; import com.esaulpaugh.headlong.util.Strings; -import com.esaulpaugh.headlong.abi.SuperSerial; import org.junit.jupiter.api.Test; import java.math.BigDecimal;