From 358078fb73d8ea7b8adc822db56886f113ad83aa Mon Sep 17 00:00:00 2001 From: Israel Merljak Date: Wed, 13 Mar 2019 10:22:24 -0300 Subject: [PATCH] hotfix e patch version --- pom.xml | 3 +- .../Ra.java | 30 +++++++++---------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/pom.xml b/pom.xml index 7a717f7..c4ad3b8 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 imerljak portalunico.siscomex.gov.br - 1.0.1 + 1.0.2 PortalUnicoSiscomex Classes da API do Portal Único de Comércio Exterior, a nova forma de interação entre as empresas privadas e os diversos órgãos públicos intervenientes no comércio exterior. https://val.portalunico.siscomex.gov.br/docs/api/ @@ -12,6 +12,7 @@ 1.7 1.7 + ISO-8859-1 diff --git a/src/main/java/br/gov/siscomex/portalunico/cct/consultardocumentotransporteespecifico/Ra.java b/src/main/java/br/gov/siscomex/portalunico/cct/consultardocumentotransporteespecifico/Ra.java index 159aae5..a4fdf24 100644 --- a/src/main/java/br/gov/siscomex/portalunico/cct/consultardocumentotransporteespecifico/Ra.java +++ b/src/main/java/br/gov/siscomex/portalunico/cct/consultardocumentotransporteespecifico/Ra.java @@ -3,9 +3,8 @@ import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; + +import java.util.Objects; public class Ra { @@ -34,24 +33,23 @@ public void setDescricao(String descricao) { @Override public String toString() { - return new ToStringBuilder(this).append("codigo", codigo).append("descricao", descricao).toString(); + return "Ra{" + + "codigo='" + codigo + '\'' + + ", descricao='" + descricao + '\'' + + '}'; } @Override - public int hashCode() { - return new HashCodeBuilder().append(codigo).append(descricao).toHashCode(); + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Ra ra = (Ra) o; + return Objects.equals(codigo, ra.codigo) && + Objects.equals(descricao, ra.descricao); } @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof Ra) == false) { - return false; - } - Ra rhs = ((Ra) other); - return new EqualsBuilder().append(codigo, rhs.codigo).append(descricao, rhs.descricao).isEquals(); + public int hashCode() { + return Objects.hash(codigo, descricao); } - }