Make fields final if possible to ensure immutability

This commit is contained in:
thatsIch
2014-09-29 09:54:34 +02:00
parent 35f6c84d9f
commit 474596f095
261 changed files with 607 additions and 597 deletions
+7 -7
View File
@@ -30,15 +30,15 @@ public class Api implements IAppEngApi
}
// private MovableTileRegistry MovableRegistry = new MovableTileRegistry();
private RegistryContainer rc = new RegistryContainer();
private ApiStorage storageHelper = new ApiStorage();
private final RegistryContainer rc = new RegistryContainer();
private final ApiStorage storageHelper = new ApiStorage();
public ApiPart partHelper = new ApiPart();
public final ApiPart partHelper = new ApiPart();
private Materials materials = new Materials();
private Items items = new Items();
private Blocks blocks = new Blocks();
private Parts parts = new Parts();
private final Materials materials = new Materials();
private final Items items = new Items();
private final Blocks blocks = new Blocks();
private final Parts parts = new Parts();
@Override
public IRegistryContainer registries()