Skip to content

Commit

Permalink
Fix checkstyle violations in VmListModel.java
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fadeev <anton.fadeev@red-soft.ru>
  • Loading branch information
antonios-f committed Mar 26, 2024
1 parent 2a25b08 commit 857772b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,8 @@ private void confirmBiosTypeUpdate(){
} else {
BiosType newBiosType = model.getBiosType().getSelectedItem();
BiosType oldBiosType = vm.getBiosType();
if ((oldBiosType.equals(BiosType.Q35_SECURE_BOOT) && !newBiosType.equals(BiosType.Q35_SECURE_BOOT)) ||
(oldBiosType.equals(BiosType.Q35_OVMF) && newBiosType.getValue() < BiosType.Q35_OVMF.getValue())){
if (oldBiosType.equals(BiosType.Q35_SECURE_BOOT) && !newBiosType.equals(BiosType.Q35_SECURE_BOOT)) ||
(oldBiosType.equals(BiosType.Q35_OVMF) && newBiosType.getValue() < BiosType.Q35_OVMF.getValue()) {
ConfirmationModel confirmModel = new ConfirmationModel();
confirmModel.setTitle(ConstantsManager.getInstance().getConstants().confirmBiosUpdateTitle());
confirmModel.setMessage(ConstantsManager.getInstance().getConstants().confirmBiosUpdateMessage());
Expand Down Expand Up @@ -2152,7 +2152,7 @@ public void executeCommand(UICommand command) {
cancel();
} else if ("OnSave".equals(command.getName())) { //$NON-NLS-1$
confirmBiosTypeUpdate();
} else if ("PreSave".equals(command.getName())) {
} else if ("PreSave".equals(command.getName())) { //$NON-NLS-1$
preSave();
} else if ("OnRemove".equals(command.getName())) { //$NON-NLS-1$
onRemove();
Expand Down

0 comments on commit 857772b

Please sign in to comment.