Initialized field can be made final, as it happen earlier during construction

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-10-17 14:33:18 +02:00
parent 999d774f90
commit 68ff09df8a

View File

@ -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) {