Upgrade spotless to 1.22.0 (#6898)

Upgrade spotless to 1.22.0 and reformat.
This is required for Java21 support.

Signed-off-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
This commit is contained in:
Danno Ferrin
2024-04-08 22:12:56 -06:00
committed by GitHub
parent 3c32d03e8e
commit 001080a72b
109 changed files with 473 additions and 160 deletions

View File

@@ -146,6 +146,7 @@ public final class BlockTestUtil {
public static ChainResources getUpgradedForkResources() {
return forkUpgradedSupplier.get();
}
/**
* Gets Eth Ref Test resources.
*

View File

@@ -139,6 +139,7 @@ public class DeterministicEthScheduler extends EthScheduler {
public interface TimeoutPolicy {
/** A policy that never timeouts */
TimeoutPolicy NEVER_TIMEOUT = () -> false;
/** A policy that timeouts on every task */
TimeoutPolicy ALWAYS_TIMEOUT = () -> true;

View File

@@ -132,6 +132,7 @@ public class JsonTestParameters<S, T> {
// The type to which the json file is directly mapped
private final Class<S> jsonFileMappedType;
// The final type of the test case spec, which may or may not not be same than jsonFileMappedType
// Note that we don't really use this field as of now, but as this is the actual type of the final
// spec used by tests, it feels "right" to have it passed explicitly at construction and having it

View File

@@ -55,6 +55,7 @@ public class TesseraTestHarness implements EnclaveTestHarness {
private final int thirdPartyPort = 9081;
private final int q2TPort = 9082;
/** The constant p2pPort. */
public static final int p2pPort = 9001;