Skip to content

Commit

Permalink
hotfix e patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
Israel Merljak committed Mar 13, 2019
1 parent caa5963 commit 358078f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>imerljak</groupId>
<artifactId>portalunico.siscomex.gov.br</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<name>PortalUnicoSiscomex</name>
<description>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.</description>
<url>https://val.portalunico.siscomex.gov.br/docs/api/</url>
Expand All @@ -12,6 +12,7 @@
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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);
}

}

0 comments on commit 358078f

Please sign in to comment.