Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java	(revision 14201)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java	(revision 14202)
@@ -33,4 +33,5 @@
 import java.util.List;
 import java.util.Map;
+import java.util.Objects;
 import java.util.Optional;
 import java.util.concurrent.ForkJoinPool;
@@ -190,4 +191,22 @@
         }
 
+        @Override
+        public int hashCode() {
+            return Objects.hash(order, osm, style, flags);
+        }
+
+        @Override
+        public boolean equals(Object obj) {
+            if (this == obj)
+                return true;
+            if (obj == null || getClass() != obj.getClass())
+                return false;
+            StyleRecord other = (StyleRecord) obj;
+            return flags == other.flags
+                && order == other.order
+                && Objects.equals(osm, other.osm)
+                && Objects.equals(style, other.style);
+        }
+
         /**
          * Get the style for this style element.
