Fix spotless, javadoc

Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
pull/7871/head
Gabriel-Trintinalia 3 weeks ago
parent ea6494ccf4
commit 1135dcf6f0
  1. 3
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/encoding/MainnetTransactionDecoder.java
  2. 2
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/encoding/MainnetTransactionEncoder.java
  3. 1
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/encoding/PooledMainnetTransactionEncoder.java
  4. 4
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/encoding/registry/RlpPooledTransactionProvider.java
  5. 4
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/encoding/registry/RlpTransactionProvider.java

@ -53,6 +53,7 @@ public class MainnetTransactionDecoder implements TransactionDecoder {
* @param rlpInput the RLP input * @param rlpInput the RLP input
* @return the decoded transaction * @return the decoded transaction
*/ */
@Override
public Transaction readFrom(final RLPInput rlpInput) { public Transaction readFrom(final RLPInput rlpInput) {
if (!rlpInput.nextIsList()) { if (!rlpInput.nextIsList()) {
return decodeTypedTransaction(rlpInput); return decodeTypedTransaction(rlpInput);
@ -61,6 +62,7 @@ public class MainnetTransactionDecoder implements TransactionDecoder {
} }
} }
@Override
public Transaction readFrom(final Bytes rlpBytes) { public Transaction readFrom(final Bytes rlpBytes) {
return readFrom(RLP.input(rlpBytes)); return readFrom(RLP.input(rlpBytes));
} }
@ -108,6 +110,7 @@ public class MainnetTransactionDecoder implements TransactionDecoder {
* @param opaqueBytes the opaque bytes * @param opaqueBytes the opaque bytes
* @return the decoded transaction * @return the decoded transaction
*/ */
@Override
public Transaction decodeOpaqueBytes(final Bytes opaqueBytes) { public Transaction decodeOpaqueBytes(final Bytes opaqueBytes) {
var transactionType = getTransactionType(opaqueBytes); var transactionType = getTransactionType(opaqueBytes);
if (transactionType.isPresent()) { if (transactionType.isPresent()) {

@ -51,6 +51,7 @@ public class MainnetTransactionEncoder implements TransactionEncoder {
* @param transaction the transaction to encode * @param transaction the transaction to encode
* @param rlpOutput the RLP output stream * @param rlpOutput the RLP output stream
*/ */
@Override
public void writeTo(final Transaction transaction, final RLPOutput rlpOutput) { public void writeTo(final Transaction transaction, final RLPOutput rlpOutput) {
final TransactionType transactionType = getTransactionType(transaction); final TransactionType transactionType = getTransactionType(transaction);
Bytes opaqueBytes = encodeOpaqueBytes(transaction); Bytes opaqueBytes = encodeOpaqueBytes(transaction);
@ -81,6 +82,7 @@ public class MainnetTransactionEncoder implements TransactionEncoder {
* @param transaction the transaction to encode * @param transaction the transaction to encode
* @return the encoded transaction as bytes * @return the encoded transaction as bytes
*/ */
@Override
public Bytes encodeOpaqueBytes(final Transaction transaction) { public Bytes encodeOpaqueBytes(final Transaction transaction) {
final TransactionType transactionType = getTransactionType(transaction); final TransactionType transactionType = getTransactionType(transaction);
if (TransactionType.FRONTIER.equals(transactionType)) { if (TransactionType.FRONTIER.equals(transactionType)) {

@ -35,6 +35,7 @@ public class PooledMainnetTransactionEncoder extends MainnetTransactionEncoder {
CodeDelegationEncoder::encode); CodeDelegationEncoder::encode);
@VisibleForTesting @VisibleForTesting
@Override
protected Encoder getEncoder(final TransactionType transactionType) { protected Encoder getEncoder(final TransactionType transactionType) {
return checkNotNull( return checkNotNull(
POOLED_TRANSACTION_ENCODERS.get(transactionType), POOLED_TRANSACTION_ENCODERS.get(transactionType),

@ -36,11 +36,11 @@ public class RlpPooledTransactionProvider {
return getDecoder().decodeOpaqueBytes(bytes); return getDecoder().decodeOpaqueBytes(bytes);
} }
public static void writeTo(Transaction transaction, RLPOutput output) { public static void writeTo(final Transaction transaction, final RLPOutput output) {
getEncoder().writeTo(transaction, output); getEncoder().writeTo(transaction, output);
} }
public static Bytes encodeOpaqueBytes(Transaction transaction) { public static Bytes encodeOpaqueBytes(final Transaction transaction) {
return getEncoder().encodeOpaqueBytes(transaction); return getEncoder().encodeOpaqueBytes(transaction);
} }

@ -35,11 +35,11 @@ public class RlpTransactionProvider {
return getDecoder().decodeOpaqueBytes(bytes); return getDecoder().decodeOpaqueBytes(bytes);
} }
public static void writeTo(Transaction transaction, RLPOutput output) { public static void writeTo(final Transaction transaction, final RLPOutput output) {
getEncoder().writeTo(transaction, output); getEncoder().writeTo(transaction, output);
} }
public static Bytes encodeOpaqueBytes(Transaction transaction) { public static Bytes encodeOpaqueBytes(final Transaction transaction) {
return getEncoder().encodeOpaqueBytes(transaction); return getEncoder().encodeOpaqueBytes(transaction);
} }

Loading…
Cancel
Save