if (diagnostics != null)
{
diagnostics.add
(new BasicDiagnostic
(Diagnostic.ERROR,
DIAGNOSTIC_SOURCE,
WELL_FORMED_INSTANCE_TYPE_NAME,
getString(key, substitutions),
new Object [] { index }));
}
if (nameToClassifierMap != null)
{
nameToClassifierMap.values().remove(eClassifier);
nameToClassifierMap.put(newName, eClassifier);
}
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
1
Number of unmapped statements in the second code fragment
2
Time elapsed for statement mapping (ms)
0.7
Clone type
Type 3
Mapped Statements
ID
Statement
ID
Statement
1
if(diagnostics!=null)
1
if(diagnostics!=null)
1
if(nameToClassifierMap!=null)
Differences
Expression1
Expression2
Difference
diagnostics
nameToClassifierMap
VARIABLE_NAME_MISMATCH
org.eclipse.emf.common.util.DiagnosticChain
java.util.Map
VARIABLE_TYPE_MISMATCH
Preondition Violations
Type org.eclipse.emf.common.util.DiagnosticChain of variable diagnostics does not match with type java.util.Map<java.lang.String,org.eclipse.emf.ecore.EClassifier> of variable nameToClassifierMap
Make classes org.eclipse.emf.common.util.DiagnosticChain and java.util.Map extend a common superclass
Type org.eclipse.emf.common.util.DiagnosticChain of variable diagnostics does not match with type java.util.Map<java.lang.String,org.eclipse.emf.ecore.EClassifier> of variable nameToClassifierMap