for (int idx = 0; idx < attributes.getLength(); idx++) {
String attr = attributes.getQName(idx);
if (attr.equals(Constants.ATTRIBUTE_NAME)) {
connector.setName(attributes.getValue(idx));
}
}
for (int i = 0; i < samples.length; i++) {
SampleResult result = OldSaveService.getSampleResult(samples[i]);
if (rc.isSampleWanted(result.isSuccessful())) {
visualizer.add(result);
}
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/monitor/parser/MonitorHandler.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/save/OldSaveService.java
|
Method name: void startElement(String, String, String, Attributes)
|
|
Method name: void processSamples(String, Visualizer, ResultCollector)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | for (int idx = 0; idx < attributes.getLength(); idx++) {↵ | | 1 | for (int i = 0; i < samples.length; i++) {↵
|
2 | String attr = attributes.getQName(idx);↵ | | 2 | ↵
|
3 | if (attr.equals(Constants.ATTRIBUTE_NAME)) {↵ | | |
|
4 | connector.setName(attributes.getValue(idx));↵ | | |
|
5 | }↵ | | |
|
6 | ↵ | | 3 | SampleResult result = OldSaveService.getSampleResult(samples[i]);↵
|
| | | 4 | if (rc.isSampleWanted(result.isSuccessful())) {↵
|
| | | 5 | visualizer.add(result);↵
|
| | | 6 | }↵
|
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |