mirror of https://github.com/apache/cloudstack.git
findbugs: static member should be final
Signed-off-by: Daan Hoogland <daan@onecht.net> This closes #495
This commit is contained in:
parent
871ba9c521
commit
9eff27a080
|
|
@ -313,7 +313,7 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||
protected DiskControllerType _rootDiskController = DiskControllerType.ide;
|
||||
|
||||
protected ManagedObjectReference _morHyperHost;
|
||||
protected static ThreadLocal<VmwareContext> s_serviceContext = new ThreadLocal<VmwareContext>();
|
||||
protected final static ThreadLocal<VmwareContext> s_serviceContext = new ThreadLocal<VmwareContext>();
|
||||
protected String _hostName;
|
||||
|
||||
protected List<PropertyMapDynamicBean> _cmdMBeans = new ArrayList<PropertyMapDynamicBean>();
|
||||
|
|
@ -327,9 +327,8 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||
|
||||
protected VirtualRoutingResource _vrResource;
|
||||
|
||||
protected static HashMap<VirtualMachinePowerState, PowerState> s_powerStatesTable;
|
||||
protected final static HashMap<VirtualMachinePowerState, PowerState> s_powerStatesTable = new HashMap<VirtualMachinePowerState, PowerState>();
|
||||
static {
|
||||
s_powerStatesTable = new HashMap<VirtualMachinePowerState, PowerState>();
|
||||
s_powerStatesTable.put(VirtualMachinePowerState.POWERED_ON, PowerState.PowerOn);
|
||||
s_powerStatesTable.put(VirtualMachinePowerState.POWERED_OFF, PowerState.PowerOff);
|
||||
s_powerStatesTable.put(VirtualMachinePowerState.SUSPENDED, PowerState.PowerOn);
|
||||
|
|
|
|||
Loading…
Reference in New Issue