mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-28 20:18:10 +01:00
Initialized field can be made final, as it happen earlier during construction
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
999d774f90
commit
68ff09df8a
@ -79,7 +79,7 @@ public final class Registry {
|
||||
private final Int2ObjectOpenHashMap<T> idMap = new Int2ObjectOpenHashMap<>();
|
||||
private final Collection<T> objects = Collections.unmodifiableCollection(namespaceMap.values());
|
||||
|
||||
private boolean initialized;
|
||||
private final boolean initialized;
|
||||
|
||||
@ApiStatus.Internal
|
||||
public Container(Resource resource, Loader<T> loader) {
|
||||
|
Loading…
Reference in New Issue
Block a user