From 1ea746446f8d4509299622ae59943219ceb5a345 Mon Sep 17 00:00:00 2001 From: Philipp Zehnder Date: Mon, 8 Apr 2024 10:59:27 +0200 Subject: [PATCH] refactor(#2708): Remove hash code from FileMetadata --- .../streampipes/model/file/FileMetadata.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/streampipes-model/src/main/java/org/apache/streampipes/model/file/FileMetadata.java b/streampipes-model/src/main/java/org/apache/streampipes/model/file/FileMetadata.java index a6b1fe7922..4696179903 100644 --- a/streampipes-model/src/main/java/org/apache/streampipes/model/file/FileMetadata.java +++ b/streampipes-model/src/main/java/org/apache/streampipes/model/file/FileMetadata.java @@ -21,8 +21,6 @@ import com.google.gson.annotations.SerializedName; -import java.util.Objects; - @TsModel public class FileMetadata { @@ -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); - } }