if (!info2.rainbow || info2.which == index - 1) { content[j] = info2.scale(info2.red, info2.factor[index]); }
if (!info2.rainbow || info2.which == index - 1) { content[j] = info2.scale(info2.blue, info2.factor[index]); }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/ExtendedImageRegistry.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/ExtendedImageRegistry.java
Method name: InputStream generateGIF(String, String) Method name: InputStream generateGIF(String, String)
Number of AST nodes: 2 Number of AST nodes: 2
1
if (!info2.rainbow || info2.which == index - 1)
1
if (!info2.rainbow || info2.which == index - 1)
2
            {
2
            {
3
              content[j] = info2.scale(info2.red, info2.factor[index]);
3
              content[j] = info2.scale(info2.blue, info2.factor[index]);
4
            }
4
            }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.5
Clones locationClones are in the same method
Number of node comparisons6
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    23
    if (!info2.rainbow || info2.which == index - 1)
    31
    if (!info2.rainbow || info2.which == index - 1)
    24
    content[j] = info2.scale(info2.red, info2.factor[index]);
    24
    content[j] = info2.scale(info2.red, info2.factor[index]);
    32
    content[j] = info2.scale(info2.blue, info2.factor[index]);
    Differences
    Expression1Expression2Difference
    redblueVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression info2.red cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression info2.blue cannot be parameterized, because it has dependencies to/from statements that will be extracted
    32
    content[j] = info2.scale(info2.blue, info2.factor[index]);
    Precondition Violations (2)
    Row Violation
    1Expression info2.red cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression info2.blue cannot be parameterized, because it has dependencies to/from statements that will be extracted