1 | package org.cardanofoundation.explorer.api.mapper; | |
2 | ||
3 | import javax.annotation.processing.Generated; | |
4 | import org.cardanofoundation.explorer.api.model.response.governanceAction.VotingOnGovActionResponse; | |
5 | import org.cardanofoundation.explorer.api.projection.LatestVotingProcedureProjection; | |
6 | import org.springframework.stereotype.Component; | |
7 | ||
8 | @Generated( | |
9 | value = "org.mapstruct.ap.MappingProcessor", | |
10 | date = "2024-11-05T06:00:27+0000", | |
11 | comments = "version: 1.5.3.Final, compiler: javac, environment: Java 18.0.2.1 (Eclipse Adoptium)" | |
12 | ) | |
13 | @Component | |
14 | public class LatestVotingProcedureMapperImpl implements LatestVotingProcedureMapper { | |
15 | ||
16 | @Override | |
17 | public VotingOnGovActionResponse fromLatestVotingProcedureProjection(LatestVotingProcedureProjection latestVotingProcedureProjection) { | |
18 |
1
1. fromLatestVotingProcedureProjection : negated conditional → KILLED |
if ( latestVotingProcedureProjection == null ) { |
19 | return null; | |
20 | } | |
21 | ||
22 | VotingOnGovActionResponse votingOnGovActionResponse = new VotingOnGovActionResponse(); | |
23 | ||
24 |
1
1. fromLatestVotingProcedureProjection : removed call to org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::setIsRepeatVote → SURVIVED |
votingOnGovActionResponse.setIsRepeatVote( latestVotingProcedureProjection.getRepeatVote() ); |
25 |
1
1. fromLatestVotingProcedureProjection : removed call to org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::setVoterHash → KILLED |
votingOnGovActionResponse.setVoterHash( latestVotingProcedureProjection.getVoterHash() ); |
26 |
1
1. fromLatestVotingProcedureProjection : removed call to org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::setVoterType → KILLED |
votingOnGovActionResponse.setVoterType( latestVotingProcedureProjection.getVoterType() ); |
27 |
1
1. fromLatestVotingProcedureProjection : removed call to org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::setVotingStake → SURVIVED |
votingOnGovActionResponse.setVotingStake( latestVotingProcedureProjection.getVotingStake() ); |
28 |
1
1. fromLatestVotingProcedureProjection : removed call to org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::setVotingPower → SURVIVED |
votingOnGovActionResponse.setVotingPower( latestVotingProcedureProjection.getVotingPower() ); |
29 |
1
1. fromLatestVotingProcedureProjection : removed call to org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::setVote → KILLED |
votingOnGovActionResponse.setVote( latestVotingProcedureProjection.getVote() ); |
30 | ||
31 |
1
1. fromLatestVotingProcedureProjection : removed call to org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::setTimestamp → SURVIVED |
votingOnGovActionResponse.setTimestamp( fromLong(latestVotingProcedureProjection.getBlockTime()) ); |
32 | ||
33 |
1
1. fromLatestVotingProcedureProjection : replaced return value with null for org/cardanofoundation/explorer/api/mapper/LatestVotingProcedureMapperImpl::fromLatestVotingProcedureProjection → KILLED |
return votingOnGovActionResponse; |
34 | } | |
35 | } | |
Mutations | ||
18 |
1.1 |
|
24 |
1.1 |
|
25 |
1.1 |
|
26 |
1.1 |
|
27 |
1.1 |
|
28 |
1.1 |
|
29 |
1.1 |
|
31 |
1.1 |
|
33 |
1.1 |