Allon Mureinik has uploaded a new change for review. Change subject: core: VdcActionUtils: apply code formatter ......................................................................
core: VdcActionUtils: apply code formatter Applied the project's code formatter in order to facilitate easier editing of this class. Change-Id: I08d4654699f7ebf554a6e987eab1d81cefb53d70 Signed-off-by: Allon Mureinik <amure...@redhat.com> --- M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcActionUtils.java 1 file changed, 29 insertions(+), 12 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/48/18848/1 diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcActionUtils.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcActionUtils.java index 8df9504..6bb6f2d 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcActionUtils.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcActionUtils.java @@ -18,8 +18,7 @@ public final class VdcActionUtils { - private static final java.util.Map<java.lang.Class<?>, java.util.Map<Enum<?>, java.util.HashSet<VdcActionType>>> - _matrix = + private static final java.util.Map<java.lang.Class<?>, java.util.Map<Enum<?>, java.util.HashSet<VdcActionType>>> _matrix = new java.util.HashMap<java.lang.Class<?>, java.util.Map<Enum<?>, java.util.HashSet<VdcActionType>>>(); static { @@ -40,7 +39,9 @@ vdsMatrix.put( VDSStatus.Error, new HashSet<VdcActionType>(Arrays.asList(VdcActionType.RemoveVds, - VdcActionType.ClearNonResponsiveVdsVms, VdcActionType.ApproveVds, VdcActionType.RefreshHostCapabilities))); + VdcActionType.ClearNonResponsiveVdsVms, + VdcActionType.ApproveVds, + VdcActionType.RefreshHostCapabilities))); vdsMatrix.put( VDSStatus.Installing, new HashSet<VdcActionType>(Arrays.asList(VdcActionType.RemoveVds, VdcActionType.ActivateVds, @@ -65,9 +66,13 @@ VdcActionType.ApproveVds, VdcActionType.MaintenanceVds, VdcActionType.RefreshHostCapabilities))); vdsMatrix.put( VDSStatus.Unassigned, - new HashSet<VdcActionType>(Arrays.asList(VdcActionType.ActivateVds, VdcActionType - .RemoveVds, VdcActionType.MaintenanceVds, - VdcActionType.ClearNonResponsiveVdsVms, VdcActionType.ApproveVds, VdcActionType.RefreshHostCapabilities))); + new HashSet<VdcActionType>(Arrays.asList(VdcActionType.ActivateVds, + VdcActionType + .RemoveVds, + VdcActionType.MaintenanceVds, + VdcActionType.ClearNonResponsiveVdsVms, + VdcActionType.ApproveVds, + VdcActionType.RefreshHostCapabilities))); vdsMatrix.put( VDSStatus.Initializing, new HashSet<VdcActionType>(Arrays.asList(VdcActionType.ActivateVds, VdcActionType.RemoveVds, @@ -87,7 +92,8 @@ VdcActionType.RefreshHostCapabilities))); vdsMatrix.put( VDSStatus.InstallFailed, - new HashSet<VdcActionType>(Arrays.asList(VdcActionType.ApproveVds, VdcActionType.RefreshHostCapabilities))); + new HashSet<VdcActionType>(Arrays.asList(VdcActionType.ApproveVds, + VdcActionType.RefreshHostCapabilities))); vdsMatrix.put( VDSStatus.Connecting, new HashSet<VdcActionType>(Arrays.asList(VdcActionType.MaintenanceVds, VdcActionType.RemoveVds, @@ -203,11 +209,22 @@ vmMatrix.put( VMStatus.ImageIllegal, new HashSet<VdcActionType>(Arrays.asList(VdcActionType.RunVm, - VdcActionType.RunVmOnce, VdcActionType.StopVm, VdcActionType.ShutdownVm, - VdcActionType.HibernateVm, VdcActionType.MigrateVm, VdcActionType.AddVmTemplate, - VdcActionType.ExportVm, VdcActionType.MoveVm, VdcActionType.ImportVm, VdcActionType.ChangeDisk, - VdcActionType.AddVmInterface, VdcActionType.UpdateVmInterface, VdcActionType.CreateAllSnapshotsFromVm, - VdcActionType.RemoveVmInterface, VdcActionType.CancelMigrateVm, VdcActionType.ExtendImageSize))); + VdcActionType.RunVmOnce, + VdcActionType.StopVm, + VdcActionType.ShutdownVm, + VdcActionType.HibernateVm, + VdcActionType.MigrateVm, + VdcActionType.AddVmTemplate, + VdcActionType.ExportVm, + VdcActionType.MoveVm, + VdcActionType.ImportVm, + VdcActionType.ChangeDisk, + VdcActionType.AddVmInterface, + VdcActionType.UpdateVmInterface, + VdcActionType.CreateAllSnapshotsFromVm, + VdcActionType.RemoveVmInterface, + VdcActionType.CancelMigrateVm, + VdcActionType.ExtendImageSize))); vmMatrix.put( VMStatus.ImageLocked, new HashSet<VdcActionType>(Arrays.asList(VdcActionType.RunVm, -- To view, visit http://gerrit.ovirt.org/18848 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I08d4654699f7ebf554a6e987eab1d81cefb53d70 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <amure...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches