injections: clear state before read

This commit is contained in:
anna
2012-12-05 12:03:26 +01:00
parent bf416e5f9a
commit ecf1fbe68b
@@ -198,6 +198,7 @@ public class Configuration implements PersistentStateComponent<Element>, Modific
}
public void loadState(final Element element) {
myInjections.clear();
final THashMap<String, LanguageInjectionSupport> supports = new THashMap<String, LanguageInjectionSupport>();
for (LanguageInjectionSupport support : InjectorUtils.getActiveInjectionSupports()) {
supports.put(support.getId(), support);