Skip to content

Commit

Permalink
remove unused var definition
Browse files Browse the repository at this point in the history
Signed-off-by: miguel-vila <[email protected]>
  • Loading branch information
miguel-vila committed Sep 20, 2024
1 parent 8fd4694 commit 03c9e84
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ public boolean equals(Object o) {
}
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
DeleteDanglingIndexResponse other = (DeleteDanglingIndexResponse) o;
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ public boolean equals(Object o) {
}
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
ImportDanglingIndexResponse other = (ImportDanglingIndexResponse) o;
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public boolean equals(Object o) {
}
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
DeleteModelGroupResponse other = (DeleteModelGroupResponse) o;
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public boolean equals(Object o) {
}
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
DeleteModelResponse other = (DeleteModelResponse) o;
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public boolean equals(Object o) {
}
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
DeleteTaskResponse other = (DeleteTaskResponse) o;
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ public boolean equals(Object o) {
}
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
CancelResponse other = (CancelResponse) o;
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ public boolean equals(Object o) {
}
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
ListResponse other = (ListResponse) o;
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,22 @@
{{/extendsOtherShape}}
if(this == o) return true;
if(this.getClass() != o.getClass()) return false;
{{className}} other = ({{className}})o;
return {{^hasFieldsToSerialize}}true{{/hasFieldsToSerialize}}
{{#fields}}
{{#isUnboxedPrimitive}}
this.{{name}}() == other.{{name}}()
{{/isUnboxedPrimitive}}
{{^isUnboxedPrimitive}}
java.util.Objects.equals(this.{{name}}, other.{{name}})
{{/isUnboxedPrimitive}}
{{^-last}}
&&
{{/-last}}
{{/fields}};
{{^hasFieldsToSerialize}}
return true;
{{/hasFieldsToSerialize}}
{{#hasFieldsToSerialize}}
{{className}} other = ({{className}})o;
return
{{#fields}}
{{#isUnboxedPrimitive}}
this.{{name}}() == other.{{name}}()
{{/isUnboxedPrimitive}}
{{^isUnboxedPrimitive}}
java.util.Objects.equals(this.{{name}}, other.{{name}})
{{/isUnboxedPrimitive}}
{{^-last}}
&&
{{/-last}}
{{/fields}};
{{/hasFieldsToSerialize}}
}

0 comments on commit 03c9e84

Please sign in to comment.