Full Imports and Code Format Optimization

This commit is contained in:
Kam committed 2025-03-12 20:11:39 -04:00
1 parent c22c5f9d79
commit afb5f1d645
60 files changed
+592 -509

No files matched your search

+7 -7
View File
@@ -1,5 +1,7 @@
package net.minecraft.util.math;
import java.util.Objects;
public class IntHashMap<V> {
private transient IntHashMap.Entry<V>[] slots = new IntHashMap.Entry[16];
/**
@@ -42,7 +44,7 @@ public class IntHashMap<V> {
}
}
return (V) null;
return null;
}
/**
@@ -131,7 +133,7 @@ public class IntHashMap<V> {
*/
public V removeObject(int p_76049_1_) {
IntHashMap.Entry<V> entry = this.removeEntry(p_76049_1_);
return (V) (entry == null ? null : entry.valueEntry);
return entry == null ? null : entry.valueEntry;
}
final IntHashMap.Entry<V> removeEntry(int p_76036_1_) {
@@ -231,13 +233,11 @@ public class IntHashMap<V> {
Object object = Integer.valueOf(this.getHash());
Object object1 = Integer.valueOf(entry.getHash());
if (object == object1 || object != null && object.equals(object1)) {
if (Objects.equals(object, object1)) {
Object object2 = this.getValue();
Object object3 = entry.getValue();
if (object2 == object3 || object2 != null && object2.equals(object3)) {
return true;
}
return Objects.equals(object2, object3);
}
return false;
@@ -252,4 +252,4 @@ public class IntHashMap<V> {
return this.getHash() + "=" + this.getValue();
}
}
}
}