if (saveConfig.saveSampleCount()) {
text.append(CSV_SAMPLE_COUNT);
text.append(delim);
text.append(CSV_ERROR_COUNT);
text.append(delim);
}
if (te instanceof TestPlan || te instanceof WorkBench) {
name.append(cur.getName());
name.append(seperator);
buildNodesModel(cur, name.toString(), 0);
}
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 | if (saveConfig.saveSampleCount()) {↵ | | 1 | if (te instanceof TestPlan || te instanceof WorkBench) {↵
|
2 | text.append(CSV_SAMPLE_COUNT);↵ | | 2 | name.append(↵
|
3 | text.append(delim);↵ | | 3 | cur.getName());↵
|
4 | text.append(CSV_ERROR_COUNT);↵ | | 4 | name.append(↵
|
5 | text.append(delim↵ | | 5 | seperator);↵
|
6 | );↵ | | 6 | buildNodesModel(cur, name.toString(), 0);↵
|
7 | } | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |