for (int i = 0; i < SampleEvent.getVarCount(); i++){ text.append(VARIABLE_NAME_QUOTE_CHAR); text.append(SampleEvent.getVarName(i)); text.append(VARIABLE_NAME_QUOTE_CHAR); text.append(delim); }
name.append(parent_name); name.append(cur.getName()); name.append(seperator); buildNodesModel(cur, name.toString(), level);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/save/CSVSaveService.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/ModuleControllerGui.java
Method name: String printableFieldNamesToString(SampleSaveConfiguration) Method name: void buildNodesModel(JMeterTreeNode, String, int)
Number of AST nodes: 5 Number of AST nodes: 4
1
for (int i = 0; i < SampleEvent.getVarCount(); i++){
2
        	text.append(VARIABLE_NAME_QUOTE_CHAR);
3
        	text.append(SampleEvent
1
name.append(parent_name);
4
.getVarName(i));
2
					name.append(cur.getName());
5
        	text.append(VARIABLE_NAME_QUOTE_CHAR);
6
            text.append(delim);
7
        }
3
					name.append(seperator);
4
					buildNodesModel(cur, name.toString(), level);
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.0
Clones locationClones are in different classes
Number of node comparisons17
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    59
    text.append(VARIABLE_NAME_QUOTE_CHAR);
    59
    text.append(VARIABLE_NAME_QUOTE_CHAR);
    10
    name.append(parent_name);
    Differences
    Expression1Expression2Difference
    VARIABLE_NAME_QUOTE_CHARparent_nameVARIABLE_NAME_MISMATCH
    textnameVARIABLE_NAME_MISMATCH
    10
    name.append(parent_name);
    60
    text.append(SampleEvent.getVarName(i));
    60
    text.append(SampleEvent.getVarName(i));
    Preondition Violations
    Unmatched statement text.append(SampleEvent.getVarName(i)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                          
    61
    text.append(VARIABLE_NAME_QUOTE_CHAR);
    61
    text.append(VARIABLE_NAME_QUOTE_CHAR);
    11
    name.append(cur.getName());
    Differences
    Expression1Expression2Difference
    VARIABLE_NAME_QUOTE_CHARcur.getName()TYPE_COMPATIBLE_REPLACEMENT
    textnameVARIABLE_NAME_MISMATCH
    11
    name.append(cur.getName());
    62
    text.append(delim);
    62
    text.append(delim);
    12
    name.append(seperator);
    Differences
    Expression1Expression2Difference
    delimseperatorVARIABLE_NAME_MISMATCH
    textnameVARIABLE_NAME_MISMATCH
    12
    name.append(seperator);
                                                                                                  
    13
    buildNodesModel(cur, name.toString(), level);
    Preondition Violations
    Unmatched statement buildNodesModel(cur,name.toString(),level); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    13
    buildNodesModel(cur, name.toString(), level);
    Precondition Violations (2)
    Row Violation
    1Unmatched statement text.append(SampleEvent.getVarName(i)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Unmatched statement buildNodesModel(cur,name.toString(),level); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted