Make fields final if possible to ensure immutability
This commit is contained in:
@@ -48,9 +48,9 @@ public class EnergyWatcher implements IEnergyWatcher
|
||||
|
||||
}
|
||||
|
||||
EnergyGridCache gsc;
|
||||
IEnergyWatcherHost myObject;
|
||||
HashSet<EnergyThreshold> myInterests = new HashSet<EnergyThreshold>();
|
||||
final EnergyGridCache gsc;
|
||||
final IEnergyWatcherHost myObject;
|
||||
final HashSet<EnergyThreshold> myInterests = new HashSet<EnergyThreshold>();
|
||||
|
||||
public void post(EnergyGridCache energyGridCache)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user