Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util')
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CDOPackageRegistryImpl.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CDOPackageRegistryImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CDOPackageRegistryImpl.java
index 08fe0f1a45..054c13c2a4 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CDOPackageRegistryImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CDOPackageRegistryImpl.java
@@ -124,13 +124,10 @@ public class CDOPackageRegistryImpl extends EPackageRegistryImpl implements CDOP
tracer.format("Registering package for {0}", key);
}
- if (value instanceof EPackageImpl)
+ if (EMFUtil.isDynamicEPackage(value))
{
EPackageImpl ePackage = (EPackageImpl)value;
- if (EMFUtil.isDynamicEPackage(ePackage))
- {
- ModelUtil.prepareDynamicEPackage(ePackage);
- }
+ ModelUtil.prepareDynamicEPackage(ePackage);
}
EPackage ePackage = (EPackage)value;

Back to the top