if (noLegendYet) { noLegendYet = false; lPanel.repaint(); lPanel.revalidate(); }
if (first) { first = false; iter.next(); continue; }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/GraphAccum.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/ModuleControllerGui.java
Method name: void drawSample(int, SampleResult, Graphics) Method name: String renderPath(Collection)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (noLegendYet) {
1
if (
2
			noLegendYe
2
first) {
3
t = false;
3
				first = false;
4
			lPanel.repaint();
4
			
5
			lPanel.revalidate()
5
	iter.next();
6
;
6
				continue;
7
		}
7
			}
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.1
Clones locationClones are in different classes having the same super class
Number of node comparisons16
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    81
    if (noLegendYet)
    81
    if (noLegendYet)
    5
    if (first)
    Differences
    Expression1Expression2Difference
    noLegendYetfirstVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression first cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5
    if (first)
    82
    noLegendYet = false;
    82
    noLegendYet = false;
    6
    first = false;
    Differences
    Expression1Expression2Difference
    noLegendYetfirstVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression noLegendYet is a field being modified, and thus it cannot be parameterized
    6
    first = false;
                                  
    7
    iter.next();
                            
    8
    continue;
    Preondition Violations
    Unmatched continue;
    8
    continue;
    83
    lPanel.repaint();
                                              
    84
    lPanel.revalidate();
                                                    
    Precondition Violations (4)
    Row Violation
    1Expression first cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression noLegendYet is a field being modified, and thus it cannot be parameterized
    3Unmatched continue;
    4Clone fragment #1 returns variables , while Clone fragment #2 returns variables first