diff --git a/plugin-api/build.gradle b/plugin-api/build.gradle index 8bd7676ee96..1160012008c 100644 --- a/plugin-api/build.gradle +++ b/plugin-api/build.gradle @@ -69,7 +69,7 @@ Calculated : ${currentHash} tasks.register('checkAPIChanges', FileStateChecker) { description = "Checks that the API for the Plugin-API project does not change without deliberate thought" files = sourceSets.main.allJava.files - knownHash = 'pSutbB9biIQPQX14VvzzVGqfeT/SivfMh4rqDhPuPOQ=' + knownHash = 'MtslBKSKFkbHlLJZZ0j4Nv6CMKizULVXztr1tmDa9qA=' } check.dependsOn('checkAPIChanges') diff --git a/plugin-api/src/main/java/org/hyperledger/besu/plugin/data/BlockTraceResult.java b/plugin-api/src/main/java/org/hyperledger/besu/plugin/data/BlockTraceResult.java index 88299926584..1ee4779cc0c 100644 --- a/plugin-api/src/main/java/org/hyperledger/besu/plugin/data/BlockTraceResult.java +++ b/plugin-api/src/main/java/org/hyperledger/besu/plugin/data/BlockTraceResult.java @@ -28,7 +28,8 @@ public class BlockTraceResult { /** * Constructs a BlockTraceResult with the given list of transaction trace results. * - * @param transactionTraceResults The list of transaction trace results to be associated with this block. + * @param transactionTraceResults The list of transaction trace results to be associated with this + * block. */ public BlockTraceResult(final List transactionTraceResults) { this.transactionTraceResults = transactionTraceResults; @@ -95,9 +96,7 @@ public static Builder builder() { return new Builder(); } - /** - * A builder class for constructing a BlockTraceResult. - */ + /** A builder class for constructing a BlockTraceResult. */ public static class Builder { List transactionTraceResults = new ArrayList<>(); diff --git a/plugin-api/src/main/java/org/hyperledger/besu/plugin/data/TransactionTraceResult.java b/plugin-api/src/main/java/org/hyperledger/besu/plugin/data/TransactionTraceResult.java index 2526014c334..8b6619de285 100644 --- a/plugin-api/src/main/java/org/hyperledger/besu/plugin/data/TransactionTraceResult.java +++ b/plugin-api/src/main/java/org/hyperledger/besu/plugin/data/TransactionTraceResult.java @@ -23,17 +23,14 @@ * Represents the result of tracing a transaction, including its status and optional error message. */ public class TransactionTraceResult { - /** - * Enumeration representing the status of the transaction trace. - */ + /** Enumeration representing the status of the transaction trace. */ public enum Status { /** - * The transaction was traced successfully. This might include transactions that have been reverted. + * The transaction was traced successfully. This might include transactions that have been + * reverted. */ SUCCESS, - /** - * There was an internal error while generating the trace. - */ + /** There was an internal error while generating the trace. */ ERROR } @@ -41,7 +38,6 @@ public enum Status { private final Status status; private final String errorMessage; - private TransactionTraceResult( final Hash txHash, final Status status, final String errorMessage) { this.txHash = txHash; @@ -60,7 +56,8 @@ public static TransactionTraceResult success(final Hash txHash) { } /** - * Creates a TransactionTraceResult with an error status, the given transaction hash, and an error message. + * Creates a TransactionTraceResult with an error status, the given transaction hash, and an error + * message. * * @param txHash The hash of the traced transaction. * @param errorMessage An error message describing the issue encountered during tracing.