Use declaration order for state holder property iteration

Mostly an aesthetic change for serialization, should not have any impact on performance or correctness.
This commit is contained in:
Jason Penilla 2024-10-27 18:29:34 -07:00
parent 8f7bce1e31
commit c72370d2c0

View file

@ -458,7 +458,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+import it.unimi.dsi.fastutil.objects.ObjectIterator;
+import it.unimi.dsi.fastutil.objects.ObjectSet;
+import it.unimi.dsi.fastutil.objects.Reference2ObjectMap;
+import it.unimi.dsi.fastutil.objects.ReferenceOpenHashSet;
+import it.unimi.dsi.fastutil.objects.ReferenceArrayList;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
@ -476,7 +476,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+ public ZeroCollidingReferenceStateTable(final Collection<Property<?>> properties) {
+ this.propertyToIndexer = new Int2ObjectOpenHashMap<>(properties.size());
+ this.properties = new ReferenceOpenHashSet<>(properties);
+ this.properties = new ReferenceArrayList<>(properties);
+
+ final List<Property<?>> sortedProperties = new ArrayList<>(properties);
+