Skip to content

Commit

Permalink
OPEN - #9: Campos formatados em função do padrão de cada Banco
Browse files Browse the repository at this point in the history
http://github.com/jrimum/bopepo/issues/issue/9

 * Refactoring: remoção de teste condicional desnecessário.
  • Loading branch information
gilmatryx committed Jan 19, 2014
1 parent 331b75e commit 0d52991
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

import static org.apache.commons.lang.StringUtils.EMPTY;
import static org.apache.commons.lang.StringUtils.isNotBlank;
import static org.jrimum.utilix.Objects.isNotNull;

import org.jrimum.domkee.financeiro.banco.febraban.Titulo;

Expand All @@ -54,10 +53,10 @@ public static String getTextoNossoNumero(Titulo titulo) {

StringBuilder texto = new StringBuilder(EMPTY);

if (isNotNull(titulo.getNossoNumero()) && isNotBlank(titulo.getNossoNumero())) {
if (isNotBlank(titulo.getNossoNumero())) {
texto.append(titulo.getNossoNumero());

if (isNotNull(titulo.getDigitoDoNossoNumero()) && isNotBlank(titulo.getDigitoDoNossoNumero())) {
if (isNotBlank(titulo.getDigitoDoNossoNumero())) {
texto.append("-" + titulo.getDigitoDoNossoNumero());
}
}
Expand Down

0 comments on commit 0d52991

Please sign in to comment.