Skip to content

Commit

Permalink
Mantendo compatibilidade versão java 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoslombardi authored Oct 10, 2024
1 parent 0471d50 commit 28d0b79
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.math.BigDecimal;
import java.time.ZonedDateTime;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

Expand Down Expand Up @@ -52,7 +53,7 @@ NFCancelamentoRetornoDados cancelaNota(final String chaveAcesso, final String nu

NFEnviaEventoCancelamento eventoAssinado = new DFPersister().read(NFEnviaEventoCancelamento.class, xmlAssinado);

final List<NFEventoRetorno> eventoRetorno = retorno.getEventoRetorno() == null ? List.of() : retorno.getEventoRetorno();
final List<NFEventoRetorno> eventoRetorno = retorno.getEventoRetorno() == null ? Arrays.asList() : retorno.getEventoRetorno();

NFProtocoloEventoCancelamento protocolo = new NFProtocoloEventoCancelamento();
protocolo.setVersao("1.00");
Expand Down

0 comments on commit 28d0b79

Please sign in to comment.