продолжение рефакторинга. создал предка для класса current
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package Visual_DVM_2021.Passes;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Current;
|
||||
import _VisualDVM.Global;
|
||||
@@ -24,8 +25,8 @@ public abstract class OpenSapforVersionPass extends Pass_2021<SapforVersion_json
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (Current.Check(Log, getCurrentName())) {
|
||||
target = (SapforVersion_json) Current.get(getCurrentName());
|
||||
if (CurrentAnchestor.Check(Log, getCurrentName())) {
|
||||
target = (SapforVersion_json) CurrentAnchestor.get(getCurrentName());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user