Skip to content

Commit a3f7ebc

Browse files
authored
Error prone final - ethereum module (Consensys#8219)
* add missing final Signed-off-by: Gabriel Fukushima <[email protected]> --------- Signed-off-by: Gabriel Fukushima <[email protected]>
1 parent 147b431 commit a3f7ebc

File tree

259 files changed

+1188
-1085
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+1188
-1085
lines changed

ethereum/dataproviders/src/main/java/tech/pegasys/teku/dataproviders/generators/StateGenerator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private StateGenerator(
4747
}
4848

4949
public static StateGenerator create(
50-
Spec spec,
50+
final Spec spec,
5151
final HashTree blockTree,
5252
final StateAndBlockSummary rootBlockAndState,
5353
final BlockProvider blockProvider) {

ethereum/dataproviders/src/main/java/tech/pegasys/teku/dataproviders/lookup/BlockProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public interface BlockProvider {
3232

3333
BlockProvider NOOP = (roots) -> SafeFuture.completedFuture(Collections.emptyMap());
3434

35-
static BlockProvider fromDynamicMap(Supplier<Map<Bytes32, SignedBeaconBlock>> mapSupplier) {
35+
static BlockProvider fromDynamicMap(final Supplier<Map<Bytes32, SignedBeaconBlock>> mapSupplier) {
3636
return (roots) -> fromMap(mapSupplier.get()).getBlocks(roots);
3737
}
3838

ethereum/execution-types/src/main/java/tech/pegasys/teku/ethereum/execution/types/Eth1Address.java

+10-9
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,24 @@ public class Eth1Address extends Bytes20 {
3030

3131
private final String encodedAddress;
3232

33-
private Eth1Address(String value) {
33+
private Eth1Address(final String value) {
3434
super(Bytes.fromHexString(value));
35+
String valueWithPrefix = value;
3536
if (!value.startsWith("0x")) {
36-
value = "0x" + value;
37+
valueWithPrefix = "0x" + value;
3738
}
38-
this.encodedAddress = toChecksumAddress(value);
39-
validate(value);
39+
this.encodedAddress = toChecksumAddress(valueWithPrefix);
40+
validate(valueWithPrefix);
4041
}
4142

42-
private Eth1Address(Bytes bytes) {
43+
private Eth1Address(final Bytes bytes) {
4344
super(bytes);
4445
final String value = bytes.toHexString();
4546
this.encodedAddress = toChecksumAddress(value);
4647
validate(value);
4748
}
4849

49-
private void validate(String value) {
50+
private void validate(final String value) {
5051
if (isMixedCase(value.substring("0x".length()))) {
5152
checkArgument(
5253
value.equals(encodedAddress),
@@ -56,11 +57,11 @@ private void validate(String value) {
5657
}
5758
}
5859

59-
public static Eth1Address fromBytes(Bytes value) {
60+
public static Eth1Address fromBytes(final Bytes value) {
6061
return new Eth1Address(value);
6162
}
6263

63-
public static Eth1Address fromHexString(String value) {
64+
public static Eth1Address fromHexString(final String value) {
6465
try {
6566
return new Eth1Address(value);
6667
} catch (RuntimeException ex) {
@@ -75,7 +76,7 @@ public static Eth1Address fromHexString(String value) {
7576
* @param value The string representation of an Ethereum address.
7677
* @return The encoded address with mixed-case checksum.
7778
*/
78-
private static String toChecksumAddress(String value) {
79+
private static String toChecksumAddress(final String value) {
7980
final String address = value.replace("0x", "").toLowerCase(Locale.ROOT);
8081
final String hashString =
8182
Hash.keccak256(Bytes.wrap(address.getBytes(StandardCharsets.US_ASCII)))

ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/auth/Token.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public String getJwtToken() {
3434
}
3535

3636
@Override
37-
public boolean equals(Object o) {
37+
public boolean equals(final Object o) {
3838
if (this == o) {
3939
return true;
4040
}

ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/ClientVersionV1.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public class ClientVersionV1 {
3636
public final Bytes4 commit;
3737

3838
public ClientVersionV1(
39-
@JsonProperty("code") String code,
40-
@JsonProperty("name") String name,
41-
@JsonProperty("version") String version,
42-
@JsonProperty("commit") Bytes4 commit) {
39+
final @JsonProperty("code") String code,
40+
final @JsonProperty("name") String name,
41+
final @JsonProperty("version") String version,
42+
final @JsonProperty("commit") Bytes4 commit) {
4343
checkNotNull(code, "code");
4444
checkNotNull(name, "name");
4545
checkNotNull(version, "version");

ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/ExecutionPayloadCommon.java

+13-13
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,19 @@ public class ExecutionPayloadCommon {
8989
public final Bytes32 blockHash;
9090

9191
public ExecutionPayloadCommon(
92-
@JsonProperty("parentHash") Bytes32 parentHash,
93-
@JsonProperty("feeRecipient") Bytes20 feeRecipient,
94-
@JsonProperty("stateRoot") Bytes32 stateRoot,
95-
@JsonProperty("receiptsRoot") Bytes32 receiptsRoot,
96-
@JsonProperty("logsBloom") Bytes logsBloom,
97-
@JsonProperty("prevRandao") Bytes32 prevRandao,
98-
@JsonProperty("blockNumber") UInt64 blockNumber,
99-
@JsonProperty("gasLimit") UInt64 gasLimit,
100-
@JsonProperty("gasUsed") UInt64 gasUsed,
101-
@JsonProperty("timestamp") UInt64 timestamp,
102-
@JsonProperty("extraData") Bytes extraData,
103-
@JsonProperty("baseFeePerGas") UInt256 baseFeePerGas,
104-
@JsonProperty("blockHash") Bytes32 blockHash) {
92+
final @JsonProperty("parentHash") Bytes32 parentHash,
93+
final @JsonProperty("feeRecipient") Bytes20 feeRecipient,
94+
final @JsonProperty("stateRoot") Bytes32 stateRoot,
95+
final @JsonProperty("receiptsRoot") Bytes32 receiptsRoot,
96+
final @JsonProperty("logsBloom") Bytes logsBloom,
97+
final @JsonProperty("prevRandao") Bytes32 prevRandao,
98+
final @JsonProperty("blockNumber") UInt64 blockNumber,
99+
final @JsonProperty("gasLimit") UInt64 gasLimit,
100+
final @JsonProperty("gasUsed") UInt64 gasUsed,
101+
final @JsonProperty("timestamp") UInt64 timestamp,
102+
final @JsonProperty("extraData") Bytes extraData,
103+
final @JsonProperty("baseFeePerGas") UInt256 baseFeePerGas,
104+
final @JsonProperty("blockHash") Bytes32 blockHash) {
105105
checkNotNull(parentHash, "parentHash");
106106
checkNotNull(feeRecipient, "feeRecipient");
107107
checkNotNull(stateRoot, "stateRoot");

ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/ExecutionPayloadV1.java

+17-16
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@ public class ExecutionPayloadV1 extends ExecutionPayloadCommon {
3737
public final List<Bytes> transactions;
3838

3939
public ExecutionPayloadV1(
40-
@JsonProperty("parentHash") Bytes32 parentHash,
41-
@JsonProperty("feeRecipient") Bytes20 feeRecipient,
42-
@JsonProperty("stateRoot") Bytes32 stateRoot,
43-
@JsonProperty("receiptsRoot") Bytes32 receiptsRoot,
44-
@JsonProperty("logsBloom") Bytes logsBloom,
45-
@JsonProperty("prevRandao") Bytes32 prevRandao,
46-
@JsonProperty("blockNumber") UInt64 blockNumber,
47-
@JsonProperty("gasLimit") UInt64 gasLimit,
48-
@JsonProperty("gasUsed") UInt64 gasUsed,
49-
@JsonProperty("timestamp") UInt64 timestamp,
50-
@JsonProperty("extraData") Bytes extraData,
51-
@JsonProperty("baseFeePerGas") UInt256 baseFeePerGas,
52-
@JsonProperty("blockHash") Bytes32 blockHash,
53-
@JsonProperty("transactions") List<Bytes> transactions) {
40+
final @JsonProperty("parentHash") Bytes32 parentHash,
41+
final @JsonProperty("feeRecipient") Bytes20 feeRecipient,
42+
final @JsonProperty("stateRoot") Bytes32 stateRoot,
43+
final @JsonProperty("receiptsRoot") Bytes32 receiptsRoot,
44+
final @JsonProperty("logsBloom") Bytes logsBloom,
45+
final @JsonProperty("prevRandao") Bytes32 prevRandao,
46+
final @JsonProperty("blockNumber") UInt64 blockNumber,
47+
final @JsonProperty("gasLimit") UInt64 gasLimit,
48+
final @JsonProperty("gasUsed") UInt64 gasUsed,
49+
final @JsonProperty("timestamp") UInt64 timestamp,
50+
final @JsonProperty("extraData") Bytes extraData,
51+
final @JsonProperty("baseFeePerGas") UInt256 baseFeePerGas,
52+
final @JsonProperty("blockHash") Bytes32 blockHash,
53+
final @JsonProperty("transactions") List<Bytes> transactions) {
5454
super(
5555
parentHash,
5656
feeRecipient,
@@ -69,7 +69,7 @@ public ExecutionPayloadV1(
6969
}
7070

7171
public ExecutionPayload asInternalExecutionPayload(
72-
ExecutionPayloadSchema<?> executionPayloadSchema) {
72+
final ExecutionPayloadSchema<?> executionPayloadSchema) {
7373
return executionPayloadSchema.createExecutionPayload(
7474
builder -> applyToBuilder(executionPayloadSchema, builder));
7575
}
@@ -94,7 +94,8 @@ protected ExecutionPayloadBuilder applyToBuilder(
9494
.transactions(transactions);
9595
}
9696

97-
public static ExecutionPayloadV1 fromInternalExecutionPayload(ExecutionPayload executionPayload) {
97+
public static ExecutionPayloadV1 fromInternalExecutionPayload(
98+
final ExecutionPayload executionPayload) {
9899
return new ExecutionPayloadV1(
99100
executionPayload.getParentHash(),
100101
executionPayload.getFeeRecipient(),

ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/ExecutionPayloadV2.java

+18-17
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ public class ExecutionPayloadV2 extends ExecutionPayloadV1 {
3535
public final List<WithdrawalV1> withdrawals;
3636

3737
public ExecutionPayloadV2(
38-
@JsonProperty("parentHash") Bytes32 parentHash,
39-
@JsonProperty("feeRecipient") Bytes20 feeRecipient,
40-
@JsonProperty("stateRoot") Bytes32 stateRoot,
41-
@JsonProperty("receiptsRoot") Bytes32 receiptsRoot,
42-
@JsonProperty("logsBloom") Bytes logsBloom,
43-
@JsonProperty("prevRandao") Bytes32 prevRandao,
44-
@JsonProperty("blockNumber") UInt64 blockNumber,
45-
@JsonProperty("gasLimit") UInt64 gasLimit,
46-
@JsonProperty("gasUsed") UInt64 gasUsed,
47-
@JsonProperty("timestamp") UInt64 timestamp,
48-
@JsonProperty("extraData") Bytes extraData,
49-
@JsonProperty("baseFeePerGas") UInt256 baseFeePerGas,
50-
@JsonProperty("blockHash") Bytes32 blockHash,
51-
@JsonProperty("transactions") List<Bytes> transactions,
52-
@JsonProperty("withdrawals") List<WithdrawalV1> withdrawals) {
38+
final @JsonProperty("parentHash") Bytes32 parentHash,
39+
final @JsonProperty("feeRecipient") Bytes20 feeRecipient,
40+
final @JsonProperty("stateRoot") Bytes32 stateRoot,
41+
final @JsonProperty("receiptsRoot") Bytes32 receiptsRoot,
42+
final @JsonProperty("logsBloom") Bytes logsBloom,
43+
final @JsonProperty("prevRandao") Bytes32 prevRandao,
44+
final @JsonProperty("blockNumber") UInt64 blockNumber,
45+
final @JsonProperty("gasLimit") UInt64 gasLimit,
46+
final @JsonProperty("gasUsed") UInt64 gasUsed,
47+
final @JsonProperty("timestamp") UInt64 timestamp,
48+
final @JsonProperty("extraData") Bytes extraData,
49+
final @JsonProperty("baseFeePerGas") UInt256 baseFeePerGas,
50+
final @JsonProperty("blockHash") Bytes32 blockHash,
51+
final @JsonProperty("transactions") List<Bytes> transactions,
52+
final @JsonProperty("withdrawals") List<WithdrawalV1> withdrawals) {
5353
super(
5454
parentHash,
5555
feeRecipient,
@@ -68,7 +68,8 @@ public ExecutionPayloadV2(
6868
this.withdrawals = withdrawals;
6969
}
7070

71-
public static ExecutionPayloadV2 fromInternalExecutionPayload(ExecutionPayload executionPayload) {
71+
public static ExecutionPayloadV2 fromInternalExecutionPayload(
72+
final ExecutionPayload executionPayload) {
7273
List<WithdrawalV1> withdrawalsList = getWithdrawals(executionPayload.getOptionalWithdrawals());
7374
return new ExecutionPayloadV2(
7475
executionPayload.getParentHash(),
@@ -103,7 +104,7 @@ protected ExecutionPayloadBuilder applyToBuilder(
103104
}
104105

105106
private Withdrawal createInternalWithdrawal(
106-
final WithdrawalV1 withdrawalV1, ExecutionPayloadSchema<?> executionPayloadSchema) {
107+
final WithdrawalV1 withdrawalV1, final ExecutionPayloadSchema<?> executionPayloadSchema) {
107108
return executionPayloadSchema
108109
.getWithdrawalSchemaRequired()
109110
.create(

ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/ExecutionPayloadV3.java

+17-17
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,23 @@ public class ExecutionPayloadV3 extends ExecutionPayloadV2 {
4242
public final UInt64 excessBlobGas;
4343

4444
public ExecutionPayloadV3(
45-
@JsonProperty("parentHash") Bytes32 parentHash,
46-
@JsonProperty("feeRecipient") Bytes20 feeRecipient,
47-
@JsonProperty("stateRoot") Bytes32 stateRoot,
48-
@JsonProperty("receiptsRoot") Bytes32 receiptsRoot,
49-
@JsonProperty("logsBloom") Bytes logsBloom,
50-
@JsonProperty("prevRandao") Bytes32 prevRandao,
51-
@JsonProperty("blockNumber") UInt64 blockNumber,
52-
@JsonProperty("gasLimit") UInt64 gasLimit,
53-
@JsonProperty("gasUsed") UInt64 gasUsed,
54-
@JsonProperty("timestamp") UInt64 timestamp,
55-
@JsonProperty("extraData") Bytes extraData,
56-
@JsonProperty("baseFeePerGas") UInt256 baseFeePerGas,
57-
@JsonProperty("blockHash") Bytes32 blockHash,
58-
@JsonProperty("transactions") List<Bytes> transactions,
59-
@JsonProperty("withdrawals") List<WithdrawalV1> withdrawals,
60-
@JsonProperty("blobGasUsed") UInt64 blobGasUsed,
61-
@JsonProperty("excessBlobGas") UInt64 excessBlobGas) {
45+
final @JsonProperty("parentHash") Bytes32 parentHash,
46+
final @JsonProperty("feeRecipient") Bytes20 feeRecipient,
47+
final @JsonProperty("stateRoot") Bytes32 stateRoot,
48+
final @JsonProperty("receiptsRoot") Bytes32 receiptsRoot,
49+
final @JsonProperty("logsBloom") Bytes logsBloom,
50+
final @JsonProperty("prevRandao") Bytes32 prevRandao,
51+
final @JsonProperty("blockNumber") UInt64 blockNumber,
52+
final @JsonProperty("gasLimit") UInt64 gasLimit,
53+
final @JsonProperty("gasUsed") UInt64 gasUsed,
54+
final @JsonProperty("timestamp") UInt64 timestamp,
55+
final @JsonProperty("extraData") Bytes extraData,
56+
final @JsonProperty("baseFeePerGas") UInt256 baseFeePerGas,
57+
final @JsonProperty("blockHash") Bytes32 blockHash,
58+
final @JsonProperty("transactions") List<Bytes> transactions,
59+
final @JsonProperty("withdrawals") List<WithdrawalV1> withdrawals,
60+
final @JsonProperty("blobGasUsed") UInt64 blobGasUsed,
61+
final @JsonProperty("excessBlobGas") UInt64 excessBlobGas) {
6262
super(
6363
parentHash,
6464
feeRecipient,

ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/ExecutionPayloadV4.java

+19-19
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,25 @@ public class ExecutionPayloadV4 extends ExecutionPayloadV3 {
4141
public final List<WithdrawalRequestV1> withdrawalRequests;
4242

4343
public ExecutionPayloadV4(
44-
@JsonProperty("parentHash") Bytes32 parentHash,
45-
@JsonProperty("feeRecipient") Bytes20 feeRecipient,
46-
@JsonProperty("stateRoot") Bytes32 stateRoot,
47-
@JsonProperty("receiptsRoot") Bytes32 receiptsRoot,
48-
@JsonProperty("logsBloom") Bytes logsBloom,
49-
@JsonProperty("prevRandao") Bytes32 prevRandao,
50-
@JsonProperty("blockNumber") UInt64 blockNumber,
51-
@JsonProperty("gasLimit") UInt64 gasLimit,
52-
@JsonProperty("gasUsed") UInt64 gasUsed,
53-
@JsonProperty("timestamp") UInt64 timestamp,
54-
@JsonProperty("extraData") Bytes extraData,
55-
@JsonProperty("baseFeePerGas") UInt256 baseFeePerGas,
56-
@JsonProperty("blockHash") Bytes32 blockHash,
57-
@JsonProperty("transactions") List<Bytes> transactions,
58-
@JsonProperty("withdrawals") List<WithdrawalV1> withdrawals,
59-
@JsonProperty("blobGasUsed") UInt64 blobGasUsed,
60-
@JsonProperty("excessBlobGas") UInt64 excessBlobGas,
61-
@JsonProperty("depositReceipts") List<DepositReceiptV1> depositReceipts,
62-
@JsonProperty("withdrawalRequests") List<WithdrawalRequestV1> withdrawalRequests) {
44+
final @JsonProperty("parentHash") Bytes32 parentHash,
45+
final @JsonProperty("feeRecipient") Bytes20 feeRecipient,
46+
final @JsonProperty("stateRoot") Bytes32 stateRoot,
47+
final @JsonProperty("receiptsRoot") Bytes32 receiptsRoot,
48+
final @JsonProperty("logsBloom") Bytes logsBloom,
49+
final @JsonProperty("prevRandao") Bytes32 prevRandao,
50+
final @JsonProperty("blockNumber") UInt64 blockNumber,
51+
final @JsonProperty("gasLimit") UInt64 gasLimit,
52+
final @JsonProperty("gasUsed") UInt64 gasUsed,
53+
final @JsonProperty("timestamp") UInt64 timestamp,
54+
final @JsonProperty("extraData") Bytes extraData,
55+
final @JsonProperty("baseFeePerGas") UInt256 baseFeePerGas,
56+
final @JsonProperty("blockHash") Bytes32 blockHash,
57+
final @JsonProperty("transactions") List<Bytes> transactions,
58+
final @JsonProperty("withdrawals") List<WithdrawalV1> withdrawals,
59+
final @JsonProperty("blobGasUsed") UInt64 blobGasUsed,
60+
final @JsonProperty("excessBlobGas") UInt64 excessBlobGas,
61+
final @JsonProperty("depositReceipts") List<DepositReceiptV1> depositReceipts,
62+
final @JsonProperty("withdrawalRequests") List<WithdrawalRequestV1> withdrawalRequests) {
6363
super(
6464
parentHash,
6565
feeRecipient,

ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/ForkChoiceStateV1.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public class ForkChoiceStateV1 {
3939
private final Bytes32 finalizedBlockHash;
4040

4141
public ForkChoiceStateV1(
42-
@JsonProperty("headBlockHash") Bytes32 headBlockHash,
43-
@JsonProperty("safeBlockHash") Bytes32 safeBlockHash,
44-
@JsonProperty("finalizedBlockHash") Bytes32 finalizedBlockHash) {
42+
final @JsonProperty("headBlockHash") Bytes32 headBlockHash,
43+
final @JsonProperty("safeBlockHash") Bytes32 safeBlockHash,
44+
final @JsonProperty("finalizedBlockHash") Bytes32 finalizedBlockHash) {
4545
checkNotNull(headBlockHash, "headBlockHash");
4646
checkNotNull(safeBlockHash, "safeBlockHash");
4747
checkNotNull(finalizedBlockHash, "finalizedBlockHash");
@@ -50,7 +50,8 @@ public ForkChoiceStateV1(
5050
this.finalizedBlockHash = finalizedBlockHash;
5151
}
5252

53-
public static ForkChoiceStateV1 fromInternalForkChoiceState(ForkChoiceState forkChoiceState) {
53+
public static ForkChoiceStateV1 fromInternalForkChoiceState(
54+
final ForkChoiceState forkChoiceState) {
5455
return new ForkChoiceStateV1(
5556
forkChoiceState.getHeadExecutionBlockHash(),
5657
forkChoiceState.getSafeExecutionBlockHash(),

ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/ForkChoiceUpdatedResult.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public class ForkChoiceUpdatedResult {
3030
private final Bytes8 payloadId;
3131

3232
public ForkChoiceUpdatedResult(
33-
@JsonProperty("payloadStatus") PayloadStatusV1 payloadStatus,
34-
@JsonProperty("payloadId") Bytes8 payloadId) {
33+
final @JsonProperty("payloadStatus") PayloadStatusV1 payloadStatus,
34+
final @JsonProperty("payloadId") Bytes8 payloadId) {
3535
checkNotNull(payloadStatus, "payloadStatus cannot be null");
3636
this.payloadStatus = payloadStatus;
3737
this.payloadId = payloadId;

ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/PayloadAttributesV1.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public class PayloadAttributesV1 {
4646
public final Bytes20 suggestedFeeRecipient;
4747

4848
public PayloadAttributesV1(
49-
@JsonProperty("timestamp") UInt64 timestamp,
50-
@JsonProperty("prevRandao") Bytes32 prevRandao,
51-
@JsonProperty("suggestedFeeRecipient") Bytes20 suggestedFeeRecipient) {
49+
final @JsonProperty("timestamp") UInt64 timestamp,
50+
final @JsonProperty("prevRandao") Bytes32 prevRandao,
51+
final @JsonProperty("suggestedFeeRecipient") Bytes20 suggestedFeeRecipient) {
5252
checkNotNull(timestamp, "timestamp");
5353
checkNotNull(prevRandao, "prevRandao");
5454
checkNotNull(suggestedFeeRecipient, "suggestedFeeRecipient");
@@ -58,7 +58,7 @@ public PayloadAttributesV1(
5858
}
5959

6060
public static Optional<PayloadAttributesV1> fromInternalPayloadBuildingAttributes(
61-
Optional<PayloadBuildingAttributes> payloadBuildingAttributes) {
61+
final Optional<PayloadBuildingAttributes> payloadBuildingAttributes) {
6262
return payloadBuildingAttributes.map(
6363
(payloadAttributes) ->
6464
new PayloadAttributesV1(

0 commit comments

Comments
 (0)