Skip to content

Commit

Permalink
refactor(#2708): Remove hash code from FileMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tenthe committed Apr 8, 2024
1 parent 875a1f4 commit 1ea7464
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

import com.google.gson.annotations.SerializedName;

import java.util.Objects;

@TsModel
public class FileMetadata {

Expand Down Expand Up @@ -94,22 +92,4 @@ public void setFiletype(String filetype) {
this.filetype = filetype;
}

@Override
public boolean equals(Object o) {
if (this == o) {return true;}
if (o == null || getClass() != o.getClass()) {return false;}
FileMetadata that = (FileMetadata) o;
return createdAt == that.createdAt && lastModified == that.lastModified && Objects.equals(
fileId,
that.fileId
) && Objects.equals(rev, that.rev) && Objects.equals(
filename,
that.filename
) && Objects.equals(filetype, that.filetype) && Objects.equals(createdByUser, that.createdByUser);
}

@Override
public int hashCode() {
return Objects.hash(fileId, rev, filename, filetype, createdAt, lastModified, createdByUser);
}
}

0 comments on commit 1ea7464

Please sign in to comment.