Skip to content

Commit

Permalink
Updated Dto's toString methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqualino.cristaudo committed Dec 4, 2023
1 parent 673a9ce commit 6516def
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public class AgreementEventDto extends EventDto {
private String agreementId;



@Override
public int hashCode() {
return Objects.hashCode(agreementId);
Expand All @@ -29,10 +28,10 @@ public boolean equals(Object obj) {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AgreementEventDto {\n");
sb.append(" eventId: ").append(getEventId()).append("\n");
sb.append(" agreementId: ").append(agreementId).append("\n");
sb.append("}");
sb.append("class AgreementEventDto { ");
sb.append("eventId: ").append(getEventId());
sb.append(", agreementId: ").append(agreementId);
sb.append(" }");
return sb.toString();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ public boolean equals(Object obj) {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EServiceEventDto {\n");
sb.append(" eventId: ").append(getEventId()).append("\n");
sb.append(" eServiceId: ").append(eServiceId).append("\n");
sb.append("}");
sb.append("class EServiceEventDto { ");
sb.append("eventId: ").append(getEventId());
sb.append(", eServiceId: ").append(eServiceId);
sb.append(" }");
return sb.toString();
}
}

0 comments on commit 6516def

Please sign in to comment.