for (int i = 0; i < draggedNodes.length; i++) {
if (draggedNodes[i] != null) {
ReportGuiPackage.getInstance().getTreeModel().insertNodeInto(draggedNodes[i], currentNode,
currentNode.getChildCount());
}
}
if (save.saveAssertions()) {
AssertionResult[] assertionResults = res.getAssertionResults();
for (int i = 0; i < assertionResults.length; i++) {
writeItem(assertionResults[i], context, writer);
}
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportPaste.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/save/converters/SampleResultConverter.java
|
Method name: void doAction(ActionEvent)
|
|
Method name: void saveAssertions(HierarchicalStreamWriter, MarshallingContext, SampleResult, SampleSaveConfiguration)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
| | | 1 | if (save.saveAssertions()) {↵
|
| | | 2 | AssertionResult[] assertionResults = res.getAssertionResults();↵
|
1 | for (int i = 0; i < draggedNodes.length; i++) {↵ | | 3 | for (int i = 0; i < assertionResults.length; i++) {↵
|
2 | if (draggedNodes[i] != null) {↵ | | 4 | ↵
|
3 | ReportGuiPackage.getInstance().getTreeModel().insertNodeInto(draggedNodes[i], currentNode,↵ | | |
|
4 | currentNode.getChildCount());↵ | | 5 | writeItem(assertionResults[i], context, writer);↵
|
5 | }↵ | | 6 | }↵
|
6 | } | | 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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |