Time elapsed for finding largest common nesting structure subtrees (ms)
0.1
Clones location
Clones are in different classes having the same super class
Number of node comparisons
6
{Non-refactorable}
Mapping Summary
Number of mapped statements
1
Number of unmapped statements in the first code fragment
2
Number of unmapped statements in the second code fragment
2
Time elapsed for statement mapping (ms)
0.4
Clone type
Type 3
Mapped Statements
ID
Statement
ID
Statement
3
Objecttype = domain.getTypeClassifier(object);
Preondition Violations
Unmatched statement Object type=domain.getTypeClassifier(object); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
3
Objecttype = domain.getTypeClassifier(object);
3
if(theXMLTypeFactory!=null)
3
if(theXMLTypeFactory!=null)
4
if(type!=null)
Differences
Expression1
Expression2
Difference
theXMLTypeFactory
type
VARIABLE_NAME_MISMATCH
org.eclipse.emf.ecore.xml.type.XMLTypeFactory
java.lang.Object
VARIABLE_TYPE_MISMATCH
Preondition Violations
Type org.eclipse.emf.ecore.xml.type.XMLTypeFactory of variable theXMLTypeFactory does not match with type java.lang.Object of variable type
Make classes org.eclipse.emf.ecore.xml.type.XMLTypeFactory and java.lang.Object extend a common superclass
4
if(type!=null)
4
returntheXMLTypeFactory;
4
returntheXMLTypeFactory;
Preondition Violations
Unmatched return theXMLTypeFactory;
5
types.add(type);
Precondition Violations (3)
Row
Violation
1
Unmatched statement Object type=domain.getTypeClassifier(object); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
2
Type org.eclipse.emf.ecore.xml.type.XMLTypeFactory of variable theXMLTypeFactory does not match with type java.lang.Object of variable type