Time elapsed for finding largest common nesting structure subtrees (ms)
0.1
Clones location
Clones are in different classes
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)
1.0
Clone type
Type 2
Mapped Statements
ID
Statement
ID
Statement
3
Objecttype = domain.getTypeClassifier(object);
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
4
InternalEObjectvalue = values.get(i);
Preondition Violations
Unmatched statement InternalEObject value=values.get(i); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
4
InternalEObjectvalue = values.get(i);
4
if(type!=null)
4
if(type!=null)
5
if(value!=null)
Differences
Expression1
Expression2
Difference
type
value
VARIABLE_NAME_MISMATCH
java.lang.Object
org.eclipse.emf.ecore.InternalEObject
VARIABLE_TYPE_MISMATCH
Preondition Violations
Type java.lang.Object of variable type does not match with type org.eclipse.emf.ecore.InternalEObject of variable value
Make classes java.lang.Object and org.eclipse.emf.ecore.InternalEObject extend a common superclass
5
if(value!=null)
5
types.add(type);
6
saveElement(value, f);
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
Unmatched statement InternalEObject value=values.get(i); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
3
Type java.lang.Object of variable type does not match with type org.eclipse.emf.ecore.InternalEObject of variable value