рефакторинг. избыточный код. зачем то был абстрактный метод
This commit is contained in:
@@ -14,10 +14,6 @@ public class AddMachine extends AddObjectPass<Machine> {
|
||||
super(Machine.class);
|
||||
}
|
||||
@Override
|
||||
protected Database getDb() {
|
||||
return Global.mainModule.getDb();
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (super.canStart(args)) {
|
||||
if (target.type.equals(MachineType.Local) && Global.mainModule.getDb().machines.LocalMachineExists()) {
|
||||
|
||||
Reference in New Issue
Block a user