From 45625795f6db2d6b18a6694832e22cb25cd3fd6a Mon Sep 17 00:00:00 2001 From: thinkAfCod Date: Mon, 9 Sep 2024 15:07:43 +0800 Subject: [PATCH] move converter and delete unused exception --- .../src/main/java/io/optimism/cli/Cli.java | 1 - .../io/optimism/cli}/LogLevelConverter.java | 2 +- .../exception/GasOverflowException.java | 38 ------------------- 3 files changed, 1 insertion(+), 40 deletions(-) rename {hildr-utilities/src/main/java/io/optimism/cli/typeconverter => hildr-node/src/main/java/io/optimism/cli}/LogLevelConverter.java (96%) delete mode 100644 hildr-utilities/src/main/java/io/optimism/utilities/exception/GasOverflowException.java diff --git a/hildr-node/src/main/java/io/optimism/cli/Cli.java b/hildr-node/src/main/java/io/optimism/cli/Cli.java index 5306e5c5..869fced1 100644 --- a/hildr-node/src/main/java/io/optimism/cli/Cli.java +++ b/hildr-node/src/main/java/io/optimism/cli/Cli.java @@ -2,7 +2,6 @@ import ch.qos.logback.classic.Level; import io.micrometer.tracing.Tracer; -import io.optimism.cli.typeconverter.LogLevelConverter; import io.optimism.cli.typeconverter.SyncModeConverter; import io.optimism.common.HildrServiceExecutionException; import io.optimism.config.Config; diff --git a/hildr-utilities/src/main/java/io/optimism/cli/typeconverter/LogLevelConverter.java b/hildr-node/src/main/java/io/optimism/cli/LogLevelConverter.java similarity index 96% rename from hildr-utilities/src/main/java/io/optimism/cli/typeconverter/LogLevelConverter.java rename to hildr-node/src/main/java/io/optimism/cli/LogLevelConverter.java index 7127e850..23649328 100644 --- a/hildr-utilities/src/main/java/io/optimism/cli/typeconverter/LogLevelConverter.java +++ b/hildr-node/src/main/java/io/optimism/cli/LogLevelConverter.java @@ -14,7 +14,7 @@ * specific language governing permissions and limitations under the License. */ -package io.optimism.cli.typeconverter; +package io.optimism.cli; import ch.qos.logback.classic.Level; import org.apache.commons.lang3.StringUtils; diff --git a/hildr-utilities/src/main/java/io/optimism/utilities/exception/GasOverflowException.java b/hildr-utilities/src/main/java/io/optimism/utilities/exception/GasOverflowException.java deleted file mode 100644 index 59056fd7..00000000 --- a/hildr-utilities/src/main/java/io/optimism/utilities/exception/GasOverflowException.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.optimism.utilities.exception; - -/** - * GasOverflowException class. - * - * @author thinkAfCod - * @since 0.1.1 - */ -public class GasOverflowException extends RuntimeException { - - /** - * Instantiates a new GasOverflowException. - * - * @param message the message - */ - public GasOverflowException(String message) { - super(message); - } - - /** - * Instantiates a new GasOverflowException. - * - * @param message the message - * @param cause the cause - */ - public GasOverflowException(String message, Throwable cause) { - super(message, cause); - } - - /** - * Instantiates a new GasOverflowException. - * - * @param cause the cause - */ - public GasOverflowException(Throwable cause) { - super(cause); - } -}