refactoring

This commit is contained in:
Miriam Baglioni 2021-03-30 12:45:34 +02:00
parent a896febc02
commit d0c94462e4
1 changed files with 1 additions and 2 deletions

View File

@ -424,10 +424,9 @@ public class ResultMapper implements Serializable {
.ifPresent(value -> instance.setType(value.getClassname()));
Optional.ofNullable(i.getUrl()).ifPresent(value -> instance.setUrl(value));
Optional<Field<String>> oPca = Optional.ofNullable(i.getProcessingchargeamount());
Optional<Field<String>> oPcc = Optional.ofNullable(i.getProcessingchargecurrency());
if(oPca.isPresent() && oPcc.isPresent()){
if (oPca.isPresent() && oPcc.isPresent()) {
APC apc = new APC();
apc.setCurrency(oPcc.get().getValue());
apc.setAmount(oPca.get().getValue());