Skip to content

Commit

Permalink
Use declaration order for state holder property iteration
Browse files Browse the repository at this point in the history
Mostly an aesthetic change for serialization, should not have any impact on performance or correctness.
  • Loading branch information
jpenilla committed Oct 28, 2024
1 parent 126cc03 commit 19e2136
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
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;
Expand All @@ -27,7 +27,7 @@ public final class ZeroCollidingReferenceStateTable<O, S> {

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);

Expand Down

0 comments on commit 19e2136

Please sign in to comment.