if (delegateItemProvider != null)
{
delegateItemProvider.removeListener(this);
delegateItemProvider = null;
}
if (diagnostics != null)
{
diagnostics.add
(new BasicDiagnostic
(Diagnostic.ERROR,
DIAGNOSTIC_SOURCE,
WELL_FORMED_INSTANCE_TYPE_NAME,
getString(key, substitutions),
new Object [] { index }));
}
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
1
Time elapsed for statement mapping (ms)
1.6
Clone type
Type 3
Mapped Statements
ID
Statement
ID
Statement
3
if(delegateItemProvider!=null)
3
if(delegateItemProvider!=null)
1
if(diagnostics!=null)
Differences
Expression1
Expression2
Difference
delegateItemProvider
diagnostics
VARIABLE_NAME_MISMATCH
org.eclipse.emf.edit.provider.IChangeNotifier
org.eclipse.emf.common.util.DiagnosticChain
VARIABLE_TYPE_MISMATCH
Preondition Violations
Type org.eclipse.emf.edit.provider.IChangeNotifier of variable delegateItemProvider does not match with type org.eclipse.emf.common.util.DiagnosticChain of variable diagnostics
Make classes org.eclipse.emf.edit.provider.IChangeNotifier and org.eclipse.emf.common.util.DiagnosticChain extend a common superclass
Type org.eclipse.emf.edit.provider.IChangeNotifier of variable delegateItemProvider does not match with type org.eclipse.emf.common.util.DiagnosticChain of variable diagnostics