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
4
{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
1
Time elapsed for statement mapping (ms)
0.5
Clone type
Type 2
Mapped Statements
ID
Statement
ID
Statement
37
if(node!=null)
37
if(node!=null)
1
if(diagnostics!=null)
Differences
Expression1
Expression2
Difference
node
diagnostics
VARIABLE_NAME_MISMATCH
org.eclipse.emf.importer.rose.parser.RoseNode
org.eclipse.emf.common.util.DiagnosticChain
VARIABLE_TYPE_MISMATCH
Preondition Violations
Type org.eclipse.emf.importer.rose.parser.RoseNode of variable node does not match with type org.eclipse.emf.common.util.DiagnosticChain of variable diagnostics
Make classes org.eclipse.emf.importer.rose.parser.RoseNode and org.eclipse.emf.common.util.DiagnosticChain extend a common superclass
Type org.eclipse.emf.importer.rose.parser.RoseNode of variable node does not match with type org.eclipse.emf.common.util.DiagnosticChain of variable diagnostics