Skip to content

Commit 9973928

Browse files
authored
add missing final - data module(Consensys#8217)
Signed-off-by: Gabriel Fukushima <[email protected]>
1 parent 0be6e13 commit 9973928

File tree

166 files changed

+375
-351
lines changed

Some content is hidden

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

166 files changed

+375
-351
lines changed

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/tekuv1/admin/PutLogLevel.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public PutLogLevel() {
4646
}
4747

4848
@Override
49-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
49+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
5050
final LogLevel requestBody = request.getRequestBody();
5151
final List<String> logFilters = requestBody.getLogFilter().orElse(List.of(""));
5252

@@ -85,15 +85,15 @@ public Level getLevel() {
8585
return level;
8686
}
8787

88-
public void setLevel(Level level) {
88+
public void setLevel(final Level level) {
8989
this.level = level;
9090
}
9191

9292
public Optional<List<String>> getLogFilter() {
9393
return logFilter;
9494
}
9595

96-
public void setLogFilter(Optional<List<String>> logFilter) {
96+
public void setLogFilter(final Optional<List<String>> logFilter) {
9797
this.logFilter = logFilter;
9898
}
9999

@@ -111,7 +111,7 @@ static DeserializableTypeDefinition<LogLevel> getJsonTypeDefinition() {
111111
}
112112

113113
@Override
114-
public boolean equals(Object o) {
114+
public boolean equals(final Object o) {
115115
if (this == o) {
116116
return true;
117117
}

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/tekuv1/admin/Readiness.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public Readiness(final DataProvider provider) {
7777
}
7878

7979
@Override
80-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
80+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
8181
request.header(Header.CACHE_CONTROL, CACHE_NONE);
8282

8383
if (!chainDataProvider.isStoreAvailable()

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/tekuv1/beacon/GetAllBlobSidecarsAtSlot.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private static EndpointMetadata createEndpointMetadata(final SchemaDefinitionCac
7272
}
7373

7474
@Override
75-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
75+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
7676
final List<UInt64> indices = request.getQueryParameterList(BLOB_INDICES_PARAMETER);
7777
final SafeFuture<Optional<List<BlobSidecar>>> future =
7878
chainDataProvider.getAllBlobSidecarsAtSlot(

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/tekuv1/beacon/GetAllBlocksAtSlot.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public GetAllBlocksAtSlot(
7171
}
7272

7373
@Override
74-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
74+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
7575
request.header(Header.CACHE_CONTROL, CACHE_NONE);
7676

7777
final UInt64 slot = request.getPathParameter(SLOT_PARAMETER);

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/tekuv1/beacon/GetEth1DataCache.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class GetEth1DataCache extends RestApiEndpoint {
4545

4646
private final Eth1DataProvider eth1DataProvider;
4747

48-
public GetEth1DataCache(Eth1DataProvider eth1DataProvider) {
48+
public GetEth1DataCache(final Eth1DataProvider eth1DataProvider) {
4949
super(
5050
EndpointMetadata.get(ROUTE)
5151
.operationId("getTekuV1BeaconPoolEth1cache")
@@ -60,7 +60,7 @@ public GetEth1DataCache(Eth1DataProvider eth1DataProvider) {
6060
}
6161

6262
@Override
63-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
63+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
6464
request.header(Header.CACHE_CONTROL, CACHE_NONE);
6565
Collection<Eth1Data> eth1CachedBlocks = this.eth1DataProvider.getEth1CachedBlocks();
6666
if (eth1CachedBlocks.isEmpty()) {

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/tekuv1/beacon/GetProposersData.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public GetProposersData(final DataProvider provider) {
5252
}
5353

5454
@Override
55-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
55+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
5656
request.header(CACHE_CONTROL, CACHE_NONE);
5757
request.respondOk(
5858
new ProposersData(

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/tekuv1/beacon/GetStateByBlockRoot.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public GetStateByBlockRoot(final ChainDataProvider chainDataProvider, final Spec
6565
}
6666

6767
@Override
68-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
68+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
6969
request.header(Header.CACHE_CONTROL, CACHE_NONE);
7070

7171
final String blockId = request.getPathParameter(PARAMETER_BLOCK_ID);

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/tekuv1/node/GetPeersScore.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public GetPeersScore(final DataProvider provider) {
6666
}
6767

6868
@Override
69-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
69+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
7070
request.header(Header.CACHE_CONTROL, CACHE_NONE);
7171
request.respondOk(network.getPeerScores());
7272
}

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/AbstractGetSimpleDataFromState.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public AbstractGetSimpleDataFromState(
3636
}
3737

3838
@Override
39-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
39+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
4040
final SafeFuture<Optional<StateAndMetaData>> future =
4141
chainDataProvider.getBeaconStateAndMetadata(request.getPathParameter(PARAMETER_STATE_ID));
4242
request.respondAsync(

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetAttestations.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class GetAttestations extends RestApiEndpoint {
4141
public static final String ROUTE = "/eth/v1/beacon/pool/attestations";
4242
private final NodeDataProvider nodeDataProvider;
4343

44-
public GetAttestations(final DataProvider dataProvider, Spec spec) {
44+
public GetAttestations(final DataProvider dataProvider, final Spec spec) {
4545
this(dataProvider.getNodeDataProvider(), spec);
4646
}
4747

@@ -61,7 +61,7 @@ public GetAttestations(final NodeDataProvider nodeDataProvider, final Spec spec)
6161
}
6262

6363
@Override
64-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
64+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
6565
request.header(Header.CACHE_CONTROL, CACHE_NONE);
6666
final Optional<UInt64> slot =
6767
request.getOptionalQueryParameter(SLOT_PARAMETER.withDescription(SLOT_QUERY_DESCRIPTION));
@@ -72,7 +72,7 @@ public void handleRequest(RestApiRequest request) throws JsonProcessingException
7272
}
7373

7474
private static SerializableTypeDefinition<List<Attestation>> getResponseType(
75-
SpecConfig specConfig) {
75+
final SpecConfig specConfig) {
7676
return SerializableTypeDefinition.<List<Attestation>>object()
7777
.name("GetPoolAttestationsResponse")
7878
.withField(

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetAttesterSlashings.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ public class GetAttesterSlashings extends RestApiEndpoint {
3636
public static final String ROUTE = "/eth/v1/beacon/pool/attester_slashings";
3737
private final NodeDataProvider nodeDataProvider;
3838

39-
public GetAttesterSlashings(final DataProvider dataProvider, Spec spec) {
39+
public GetAttesterSlashings(final DataProvider dataProvider, final Spec spec) {
4040
this(dataProvider.getNodeDataProvider(), spec);
4141
}
4242

43-
GetAttesterSlashings(final NodeDataProvider provider, Spec spec) {
43+
GetAttesterSlashings(final NodeDataProvider provider, final Spec spec) {
4444
super(
4545
EndpointMetadata.get(ROUTE)
4646
.operationId("getPoolAttesterSlashings")
@@ -54,13 +54,14 @@ public GetAttesterSlashings(final DataProvider dataProvider, Spec spec) {
5454
}
5555

5656
@Override
57-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
57+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
5858
request.header(Header.CACHE_CONTROL, CACHE_NONE);
5959
List<AttesterSlashing> attesterSlashings = nodeDataProvider.getAttesterSlashings();
6060
request.respondOk(attesterSlashings);
6161
}
6262

63-
private static SerializableTypeDefinition<List<AttesterSlashing>> getResponseType(Spec spec) {
63+
private static SerializableTypeDefinition<List<AttesterSlashing>> getResponseType(
64+
final Spec spec) {
6465
final IndexedAttestation.IndexedAttestationSchema indexedAttestationSchema =
6566
new IndexedAttestation.IndexedAttestationSchema(spec.getGenesisSpecConfig());
6667
final AttesterSlashing.AttesterSlashingSchema attesterSlashingSchema =

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetBlindedBlock.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public GetBlindedBlock(
7272
}
7373

7474
@Override
75-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
75+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
7676
final SafeFuture<Optional<ObjectAndMetaData<SignedBeaconBlock>>> future =
7777
chainDataProvider.getBlindedBlock(request.getPathParameter(PARAMETER_BLOCK_ID));
7878

@@ -91,7 +91,7 @@ public void handleRequest(RestApiRequest request) throws JsonProcessingException
9191
}
9292

9393
private static SerializableTypeDefinition<ObjectAndMetaData<SignedBeaconBlock>> getResponseType(
94-
SchemaDefinitionCache schemaDefinitionCache) {
94+
final SchemaDefinitionCache schemaDefinitionCache) {
9595
final SerializableTypeDefinition<SignedBeaconBlock> signedBeaconBlockType =
9696
getSchemaDefinitionForAllSupportedMilestones(
9797
schemaDefinitionCache,

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetBlobSidecars.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private static EndpointMetadata createEndpointMetadata(final SchemaDefinitionCac
7373
}
7474

7575
@Override
76-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
76+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
7777
final List<UInt64> indices = request.getQueryParameterList(BLOB_INDICES_PARAMETER);
7878
final SafeFuture<Optional<List<BlobSidecar>>> future =
7979
chainDataProvider.getBlobSidecars(request.getPathParameter(PARAMETER_BLOCK_ID), indices);

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetBlockAttestations.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public class GetBlockAttestations extends RestApiEndpoint {
4040
public static final String ROUTE = "/eth/v1/beacon/blocks/{block_id}/attestations";
4141
private final ChainDataProvider chainDataProvider;
4242

43-
public GetBlockAttestations(final DataProvider dataProvider, Spec spec) {
43+
public GetBlockAttestations(final DataProvider dataProvider, final Spec spec) {
4444
this(dataProvider.getChainDataProvider(), spec);
4545
}
4646

47-
public GetBlockAttestations(final ChainDataProvider chainDataProvider, Spec spec) {
47+
public GetBlockAttestations(final ChainDataProvider chainDataProvider, final Spec spec) {
4848
super(
4949
EndpointMetadata.get(ROUTE)
5050
.operationId("getBlockAttestations")
@@ -59,7 +59,7 @@ public GetBlockAttestations(final ChainDataProvider chainDataProvider, Spec spec
5959
}
6060

6161
@Override
62-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
62+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
6363
final SafeFuture<Optional<ObjectAndMetaData<List<Attestation>>>> future =
6464
chainDataProvider.getBlockAttestations(request.getPathParameter(PARAMETER_BLOCK_ID));
6565

@@ -72,7 +72,7 @@ public void handleRequest(RestApiRequest request) throws JsonProcessingException
7272
}
7373

7474
private static SerializableTypeDefinition<ObjectAndMetaData<List<Attestation>>> getResponseType(
75-
Spec spec) {
75+
final Spec spec) {
7676
Attestation.AttestationSchema dataSchema =
7777
new Attestation.AttestationSchema(spec.getGenesisSpecConfig());
7878

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetBlockHeader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public GetBlockHeader(final ChainDataProvider chainDataProvider) {
6666
}
6767

6868
@Override
69-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
69+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
7070
final SafeFuture<Optional<BlockAndMetaData>> future =
7171
chainDataProvider.getBlockAndMetaData(request.getPathParameter(PARAMETER_BLOCK_ID));
7272

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetBlockHeaders.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public GetBlockHeaders(final ChainDataProvider chainDataProvider) {
7373
}
7474

7575
@Override
76-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
76+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
7777
final Optional<Bytes32> parentRoot = request.getOptionalQueryParameter(PARENT_ROOT_PARAMETER);
7878
final Optional<UInt64> slot =
7979
request.getOptionalQueryParameter(SLOT_PARAMETER.withDescription(SLOT_QUERY_DESCRIPTION));

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetBlockRoot.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public GetBlockRoot(final ChainDataProvider chainDataProvider) {
6565
}
6666

6767
@Override
68-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
68+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
6969
final SafeFuture<Optional<ObjectAndMetaData<Bytes32>>> future =
7070
chainDataProvider.getBlockRoot(request.getPathParameter(PARAMETER_BLOCK_ID));
7171

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetBlsToExecutionChanges.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private static EndpointMetadata createEndpointMetadata(final SchemaDefinitionCac
8686
}
8787

8888
@Override
89-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
89+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
9090
request.header(Header.CACHE_CONTROL, CACHE_NONE);
9191
final Optional<Boolean> locallySubmitted =
9292
request.getOptionalQueryParameter(LOCALLY_SUBMITTED_QUERY_PARAMETER);

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetFinalizedBlockRoot.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ public class GetFinalizedBlockRoot extends RestApiEndpoint {
4343
.withField("data", ROOT_TYPE, Function.identity())
4444
.build();
4545

46-
public GetFinalizedBlockRoot(DataProvider dataProvider) {
46+
public GetFinalizedBlockRoot(final DataProvider dataProvider) {
4747
this(dataProvider.getChainDataProvider());
4848
}
4949

50-
public GetFinalizedBlockRoot(ChainDataProvider chainDataProvider) {
50+
public GetFinalizedBlockRoot(final ChainDataProvider chainDataProvider) {
5151
super(
5252
EndpointMetadata.get(ROUTE)
5353
.operationId("getFinalizedBlockRoot")
@@ -64,7 +64,7 @@ public GetFinalizedBlockRoot(ChainDataProvider chainDataProvider) {
6464
}
6565

6666
@Override
67-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
67+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
6868
final UInt64 slot = request.getPathParameter(SLOT_PARAMETER);
6969
final SafeFuture<Optional<Bytes32>> futureFinalizedBlockRoot =
7070
chainDataProvider.getFinalizedBlockRoot(slot);

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetFinalizedCheckpointState.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public class GetFinalizedCheckpointState extends RestApiEndpoint {
3838
public static final String ROUTE = "/eth/v1/checkpoint/finalized_state";
3939
private final ChainDataProvider chainDataProvider;
4040

41-
public GetFinalizedCheckpointState(final DataProvider dataProvider, Spec spec) {
41+
public GetFinalizedCheckpointState(final DataProvider dataProvider, final Spec spec) {
4242
this(dataProvider.getChainDataProvider(), spec);
4343
}
4444

45-
public GetFinalizedCheckpointState(final ChainDataProvider chainDataProvider, Spec spec) {
45+
public GetFinalizedCheckpointState(final ChainDataProvider chainDataProvider, final Spec spec) {
4646
super(
4747
EndpointMetadata.get(ROUTE)
4848
.operationId("getFinalizedCheckpointState")
@@ -64,7 +64,7 @@ public GetFinalizedCheckpointState(final ChainDataProvider chainDataProvider, Sp
6464
}
6565

6666
@Override
67-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
67+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
6868
final SafeFuture<Optional<StateAndMetaData>> future =
6969
chainDataProvider.getBeaconStateAndMetadata("finalized");
7070

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetGenesis.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private Optional<GenesisData> getGenesisData() {
5959
}
6060

6161
@Override
62-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
62+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
6363
final Optional<GenesisData> maybeData = getGenesisData();
6464
if (maybeData.isEmpty()) {
6565
request.respondWithCode(SC_NOT_FOUND);

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetProposerSlashings.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public GetProposerSlashings(final DataProvider dataProvider) {
6161
}
6262

6363
@Override
64-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
64+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
6565
request.header(Header.CACHE_CONTROL, CACHE_NONE);
6666
List<ProposerSlashing> proposerSlashings = nodeDataProvider.getProposerSlashings();
6767
request.respondOk(proposerSlashings);

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetStateCommittees.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public GetStateCommittees(final DataProvider dataProvider) {
8989
}
9090

9191
@Override
92-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
92+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
9393
final Optional<UInt64> epoch = request.getOptionalQueryParameter(EPOCH_PARAMETER);
9494
final Optional<UInt64> committeeIndex = request.getOptionalQueryParameter(INDEX_PARAMETER);
9595
final Optional<UInt64> slot =

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetStateSyncCommittees.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public GetStateSyncCommittees(final ChainDataProvider chainDataProvider) {
8383
}
8484

8585
@Override
86-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
86+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
8787
final Optional<UInt64> epoch = request.getOptionalQueryParameter(EPOCH_PARAMETER);
8888
final SafeFuture<Optional<ObjectAndMetaData<StateSyncCommitteesData>>> future =
8989
chainDataProvider.getStateSyncCommittees(

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetStateValidator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public GetStateValidator(final DataProvider dataProvider) {
7272
}
7373

7474
@Override
75-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
75+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
7676
final SafeFuture<Optional<StateAndMetaData>> future =
7777
chainDataProvider.getBeaconStateAndMetadata(request.getPathParameter(PARAMETER_STATE_ID));
7878

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetStateValidatorBalances.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public GetStateValidatorBalances(final DataProvider dataProvider) {
7474
}
7575

7676
@Override
77-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
77+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
7878
final List<String> validators = request.getQueryParameterList(ID_PARAMETER);
7979

8080
final SafeFuture<Optional<ObjectAndMetaData<List<StateValidatorBalanceData>>>> future =

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetStateValidators.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public GetStateValidators(final DataProvider dataProvider) {
6464
}
6565

6666
@Override
67-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
67+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
6868
final List<String> validators = request.getQueryParameterList(ID_PARAMETER);
6969
final List<StatusParameter> statusParameters = request.getQueryParameterList(STATUS_PARAMETER);
7070

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetVoluntaryExits.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public GetVoluntaryExits(final DataProvider dataProvider) {
6262
}
6363

6464
@Override
65-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
65+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
6666
request.header(Header.CACHE_CONTROL, CACHE_NONE);
6767
request.respondOk(nodeDataProvider.getVoluntaryExits());
6868
}

data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/PostAttestation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public PostAttestation(
7070
}
7171

7272
@Override
73-
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
73+
public void handleRequest(final RestApiRequest request) throws JsonProcessingException {
7474
final List<Attestation> attestations = request.getRequestBody();
7575
final SafeFuture<List<SubmitDataError>> future = provider.submitAttestations(attestations);
7676

0 commit comments

Comments
 (0)