summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/backup/incremental/ObjectElement.java
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-01-22 20:08:29 +0800
committerkeuin <[email protected]>2021-01-22 20:08:29 +0800
commit270dd70a0fa80fbea0f7985a551c1b453e3f9903 (patch)
tree2ea04b72edeb0c1eeb5b3f9e012448a33e8d3948 /src/main/java/com/keuin/kbackupfabric/backup/incremental/ObjectElement.java
parent1c23fc14be8a0ac9542f1412448c4d896756ba01 (diff)
Fix a potential bug caused by the wrong implementation of compareTo method in ObjectElement
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/backup/incremental/ObjectElement.java')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/backup/incremental/ObjectElement.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/backup/incremental/ObjectElement.java b/src/main/java/com/keuin/kbackupfabric/backup/incremental/ObjectElement.java
index ee677fa..ff998f0 100644
--- a/src/main/java/com/keuin/kbackupfabric/backup/incremental/ObjectElement.java
+++ b/src/main/java/com/keuin/kbackupfabric/backup/incremental/ObjectElement.java
@@ -1,7 +1,6 @@
package com.keuin.kbackupfabric.backup.incremental;
import com.keuin.kbackupfabric.backup.incremental.identifier.ObjectIdentifier;
-import org.jetbrains.annotations.NotNull;
import java.io.Serializable;
import java.util.Objects;
@@ -10,7 +9,7 @@ import java.util.Objects;
* Representing a file in a ObjectCollection.
* Immutable.
*/
-public class ObjectElement implements Serializable, Comparable<ObjectElement> {
+public class ObjectElement implements Serializable {
private final String name;
private final ObjectIdentifier identifier;
@@ -59,8 +58,4 @@ public class ObjectElement implements Serializable, Comparable<ObjectElement> {
'}';
}
- @Override
- public int compareTo(@NotNull ObjectElement objectElement) {
- return name.compareTo(objectElement.name);
- }
}