продолжение рефакторинга. создал предка для класса current
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package Visual_DVM_2021.Passes;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common_old.Current;
|
||||
import _VisualDVM.Global;
|
||||
import Common_old.UI.VisualCache.ConfigurationCache;
|
||||
@@ -21,8 +22,8 @@ public abstract class ShowCurrentConfigurationTests<C extends Configuration> ext
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = null;
|
||||
if (Current.Check(Log, currentName())) {
|
||||
target = (C) Current.get(currentName());
|
||||
if (CurrentAnchestor.Check(Log, currentName())) {
|
||||
target = (C) CurrentAnchestor.get(currentName());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user