summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Coutable2014-04-09 10:58:53 (EDT)
committerEd Merks2014-04-10 11:12:46 (EDT)
commite2c83fbb4fd22a9e1b99b445700abb2dc0d59d31 (patch)
treeb8abf20fb330bd833557a4d89dfc74420f212497
parente249ebf1c6126b097b2de95d04536b595509f0f2 (diff)
downloadorg.eclipse.emf-e2c83fbb4fd22a9e1b99b445700abb2dc0d59d31.zip
org.eclipse.emf-e2c83fbb4fd22a9e1b99b445700abb2dc0d59d31.tar.gz
org.eclipse.emf-e2c83fbb4fd22a9e1b99b445700abb2dc0d59d31.tar.bz2
[432529]Delete useless cast.refs/changes/93/24793/2
Signed-off-by: Guillaume Coutable <guillaume.coutable@obeo.fr>
-rw-r--r--plugins/org.eclipse.emf.ecore.xmi/src/org/eclipse/emf/ecore/xmi/impl/XMLHelperImpl.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.ecore.xmi/src/org/eclipse/emf/ecore/xmi/impl/XMLHelperImpl.java b/plugins/org.eclipse.emf.ecore.xmi/src/org/eclipse/emf/ecore/xmi/impl/XMLHelperImpl.java
index 0483978..9f26308 100644
--- a/plugins/org.eclipse.emf.ecore.xmi/src/org/eclipse/emf/ecore/xmi/impl/XMLHelperImpl.java
+++ b/plugins/org.eclipse.emf.ecore.xmi/src/org/eclipse/emf/ecore/xmi/impl/XMLHelperImpl.java
@@ -865,7 +865,7 @@ public class XMLHelperImpl implements XMLHelper
EClass eClass = (EClass)type;
if (!eClass.isAbstract())
{
- newObject = eFactory.create((EClass)type);
+ newObject = eFactory.create(eClass);
}
}
else
@@ -882,7 +882,7 @@ public class XMLHelperImpl implements XMLHelper
EClass eClass = (EClass)type;
if (!eClass.isAbstract())
{
- newObject = eFactory.create((EClass)type);
+ newObject = eFactory.create(eClass);
}
}
}
@@ -902,12 +902,12 @@ public class XMLHelperImpl implements XMLHelper
}
else
{
- EClass eClass = (EClass)ePackage.getEClassifier(typeName);
- if (eClass == null && xmlMap != null)
+ EClassifier eClassifier = ePackage.getEClassifier(typeName);
+ if (eClassifier == null && xmlMap != null)
{
return xmlMap.getClassifier(ePackage.getNsURI(), typeName);
}
- return eClass;
+ return eClassifier;
}
}
return null;