mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
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:
parent
8f7bce1e31
commit
c72370d2c0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
+
|
||||
|
|
Loading…
Reference in a new issue