mirror of https://github.com/apache/cloudstack.git
removed some redundant Boolean isntantiations
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
This commit is contained in:
parent
b354893393
commit
2c4ac5e4d3
|
|
@ -5238,7 +5238,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
|||
NicVO nic = _entityMgr.findById(NicVO.class, work.getNicId());
|
||||
boolean result = orchestrateRemoveNicFromVm(vm, nic);
|
||||
return new Pair<JobInfo.Status, String>(JobInfo.Status.SUCCEEDED,
|
||||
_jobMgr.marshallResultObject(new Boolean(result)));
|
||||
_jobMgr.marshallResultObject(result));
|
||||
}
|
||||
|
||||
private Pair<JobInfo.Status, String> orchestrateRemoveVmFromNetwork(VmWorkRemoveVmFromNetwork work) throws Exception {
|
||||
|
|
@ -5250,7 +5250,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
|||
boolean result = orchestrateRemoveVmFromNetwork(vm,
|
||||
work.getNetwork(), work.getBroadcastUri());
|
||||
return new Pair<JobInfo.Status, String>(JobInfo.Status.SUCCEEDED,
|
||||
_jobMgr.marshallResultObject(new Boolean(result)));
|
||||
_jobMgr.marshallResultObject(result));
|
||||
}
|
||||
|
||||
private Pair<JobInfo.Status, String> orchestrateReconfigure(VmWorkReconfigure work) throws Exception {
|
||||
|
|
|
|||
|
|
@ -885,7 +885,7 @@ public class ApiServer extends ManagerBase implements HttpRequestHandler, ApiSer
|
|||
|
||||
session.setAttribute("type", Short.valueOf(account.getType()).toString());
|
||||
session.setAttribute("registrationtoken", userAcct.getRegistrationToken());
|
||||
session.setAttribute("registered", new Boolean(userAcct.isRegistered()).toString());
|
||||
session.setAttribute("registered", Boolean.toString(userAcct.isRegistered()));
|
||||
|
||||
if (timezone != null) {
|
||||
session.setAttribute("timezone", timezone);
|
||||
|
|
|
|||
|
|
@ -816,8 +816,8 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
|
|||
final List<StoragePoolHostVO> pools = _storagePoolHostDao.listByHostIdIncludingRemoved(hostId);
|
||||
|
||||
ResourceStateAdapter.DeleteHostAnswer answer =
|
||||
(ResourceStateAdapter.DeleteHostAnswer)dispatchToStateAdapters(ResourceStateAdapter.Event.DELETE_HOST, false, host, new Boolean(isForced), new Boolean(
|
||||
isForceDeleteStorage));
|
||||
(ResourceStateAdapter.DeleteHostAnswer)dispatchToStateAdapters(ResourceStateAdapter.Event.DELETE_HOST, false, host, isForced,
|
||||
isForceDeleteStorage);
|
||||
|
||||
if (answer == null) {
|
||||
throw new CloudRuntimeException("No resource adapter respond to DELETE_HOST event for " + host.getName() + " id = " + hostId + ", hypervisorType is " +
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ public class UploadMonitorImpl extends ManagerBase implements UploadMonitor {
|
|||
@Inject
|
||||
private DataStoreManager storeMgr;
|
||||
|
||||
private Boolean _sslCopy = new Boolean(false);
|
||||
private boolean _sslCopy = false;
|
||||
private String _ssvmUrlDomain;
|
||||
private ScheduledExecutorService _executor = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -1053,7 +1053,7 @@ public class VMSnapshotManagerImpl extends ManagerBase implements VMSnapshotMana
|
|||
public Pair<JobInfo.Status, String> orchestrateDeleteVMSnapshot(VmWorkDeleteVMSnapshot work) {
|
||||
boolean result = orchestrateDeleteVMSnapshot(work.getVmSnapshotId());
|
||||
return new Pair<JobInfo.Status, String>(JobInfo.Status.SUCCEEDED,
|
||||
_jobMgr.marshallResultObject(new Boolean(result)));
|
||||
_jobMgr.marshallResultObject(result));
|
||||
}
|
||||
|
||||
public Pair<JobInfo.Status, String> orchestrateRevertToVMSnapshot(VmWorkRevertToVMSnapshot work) throws Exception {
|
||||
|
|
@ -1064,7 +1064,7 @@ public class VMSnapshotManagerImpl extends ManagerBase implements VMSnapshotMana
|
|||
public Pair<JobInfo.Status, String> orchestrateDeleteAllVMSnapshots(VmWorkDeleteAllVMSnapshots work) {
|
||||
boolean result = orchestrateDeleteAllVMSnapshots(work.getVmId(), work.getSnapshotType());
|
||||
return new Pair<JobInfo.Status, String>(JobInfo.Status.SUCCEEDED,
|
||||
_jobMgr.marshallResultObject(new Boolean(result)));
|
||||
_jobMgr.marshallResultObject(result));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue