diff --git a/pom.xml b/pom.xml index 9a44e194f..5a9c499e3 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ br.com.rjconsultores GeneradorBoletosCNAB - 1.4.0 + 1.4.1 GeneradorBoletosCNAB diff --git a/src/com/rjconsultores/ventaboletos/blocos/itau/ArquivoRemessaItau.java b/src/com/rjconsultores/ventaboletos/blocos/itau/ArquivoRemessaItau.java index fb34d9c1c..b3569be02 100644 --- a/src/com/rjconsultores/ventaboletos/blocos/itau/ArquivoRemessaItau.java +++ b/src/com/rjconsultores/ventaboletos/blocos/itau/ArquivoRemessaItau.java @@ -35,7 +35,6 @@ public class ArquivoRemessaItau extends ArquivoRemessaItem { @Override public RodapeRemessa getRodapeRemessa() { this.rodapeRemessa = this.rodapeRemessa == null ? new RodapeRemessaPadrao() : this.rodapeRemessa; - rodapeRemessa.setNumeroSequencialRegistro(titulos.size()+2); return rodapeRemessa; } } diff --git a/src/com/rjconsultores/ventaboletos/layouts/ItauFlatFile.java b/src/com/rjconsultores/ventaboletos/layouts/ItauFlatFile.java index 5ac1e116c..266a123e1 100644 --- a/src/com/rjconsultores/ventaboletos/layouts/ItauFlatFile.java +++ b/src/com/rjconsultores/ventaboletos/layouts/ItauFlatFile.java @@ -21,6 +21,8 @@ import com.rjconsultores.ventaboletos.utils.FormataUtil; public class ItauFlatFile extends AbstractFlatFile implements RemessaInterface { + private static final String SOMENTE_CLASSE_DE_RETORNO = "Somente classe de Retorno."; + public ItauFlatFile() { super(BancoLayout.ITAU_400_Envio); } @@ -152,17 +154,17 @@ public class ItauFlatFile extends AbstractFlatFile implements RemessaInterface { @Override protected CabecalhoRetorno readHeader(Record header) { - throw new UnsupportedOperationException("Somente classe de Retorno."); + throw new UnsupportedOperationException(SOMENTE_CLASSE_DE_RETORNO); } @Override protected List readTransacaoTitulos(Collection registrosDeTransacoes) { - throw new UnsupportedOperationException("Somente classe de Retorno."); + throw new UnsupportedOperationException(SOMENTE_CLASSE_DE_RETORNO); } @Override protected RodapeRetorno readTrailler(Record trailler) { - throw new UnsupportedOperationException("Somente classe de Retorno."); + throw new UnsupportedOperationException(SOMENTE_CLASSE_DE_RETORNO); } @Override