mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Components: duplicating component name check corrected
This commit is contained in:
+3
-3
@@ -189,9 +189,9 @@ abstract class ComponentStoreImpl implements IComponentStore {
|
||||
}
|
||||
|
||||
private void doAddComponent(String componentName, Object component) {
|
||||
if (myComponents.containsKey(componentName)) {
|
||||
LOG.error("Conflicting component name '" + componentName + "': "
|
||||
+ myComponents.get(componentName).getClass() + " and " + component.getClass());
|
||||
Object existing = myComponents.get(componentName);
|
||||
if (existing != null && existing != component) {
|
||||
LOG.error("Conflicting component name '" + componentName + "': " + existing.getClass() + " and " + component.getClass());
|
||||
}
|
||||
myComponents.put(componentName, component);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user