From 9618ece8317a58d2baadfd55863287e9efa09ead Mon Sep 17 00:00:00 2001 From: granny Date: Mon, 17 Jun 2024 00:29:47 -0700 Subject: [PATCH] shallow list copy in hashcode, closes #48 --- .../main/java/net/pl3x/map/core/markers/marker/Polyline.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/net/pl3x/map/core/markers/marker/Polyline.java b/core/src/main/java/net/pl3x/map/core/markers/marker/Polyline.java index e7d8adbbc..dad8f04eb 100644 --- a/core/src/main/java/net/pl3x/map/core/markers/marker/Polyline.java +++ b/core/src/main/java/net/pl3x/map/core/markers/marker/Polyline.java @@ -307,7 +307,7 @@ public boolean equals(@Nullable Object o) { @Override public int hashCode() { - return Objects.hash(getKey(), getPoints(), getPane(), getOptions()); + return Objects.hash(getKey(), new ArrayList<>(getPoints()), getPane(), getOptions()); } @Override