mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 06:51:17 +07:00
test isolation
This commit is contained in:
+6
-1
@@ -276,7 +276,12 @@ public class InjectedLanguageManagerImpl extends InjectedLanguageManager {
|
||||
private final Map<Class,MultiHostInjector[]> myInjectorsClone = new HashMap<Class, MultiHostInjector[]>();
|
||||
@TestOnly
|
||||
public void pushInjectors() {
|
||||
assert myInjectorsClone.isEmpty() : myInjectorsClone;
|
||||
try {
|
||||
assert myInjectorsClone.isEmpty() : myInjectorsClone;
|
||||
}
|
||||
finally {
|
||||
myInjectorsClone.clear();
|
||||
}
|
||||
myInjectorsClone.putAll(injectors);
|
||||
}
|
||||
@TestOnly
|
||||
|
||||
Reference in New Issue
Block a user