Skip to content

Commit

Permalink
spotless, plugin hash update
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Lehrner <[email protected]>
  • Loading branch information
daniellehrner committed Oct 25, 2023
1 parent 5abbf71 commit 3ec3a96
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion plugin-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TransactionTraceResult> transactionTraceResults) {
this.transactionTraceResults = transactionTraceResults;
Expand Down Expand Up @@ -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<TransactionTraceResult> transactionTraceResults = new ArrayList<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,21 @@
* 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
}

private final Hash txHash;
private final Status status;
private final String errorMessage;


private TransactionTraceResult(
final Hash txHash, final Status status, final String errorMessage) {
this.txHash = txHash;
Expand All @@ -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.
Expand Down

0 comments on commit 3ec3a96

Please sign in to comment.