if (attributes != null) {
for (int idx = 0; idx < attributes.getLength(); idx++) {
String attr = attributes.getQName(idx);
if (attr.equals(Constants.ATTRIBUTE_NAME)) {
connector.setName(attributes.getValue(idx));
}
}
}
lineNumber++;
SampleEvent event = CSVSaveService.makeResultFromDelimitedString(parts,saveConfig,lineNumber);
if (event != null){
final SampleResult result = event.getResult();
if (resultCollector.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/CSVSaveService.java
|
Method name: void startElement(String, String, String, Attributes)
|
|
Method name: void processSamples(String, Visualizer, ResultCollector)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 6
|
|
1 | if (attributes != null) {↵ | | |
|
2 | for (int idx = 0; idx < attributes.getLength(); idx++) {↵ | | |
|
3 | String attr = attributes.getQName(idx↵ | | 1 | lineNumber++;↵
|
| | | 2 | SampleEvent event = CSVSaveService.makeResultFromDelimitedString(parts,saveConfig,lineNumber);↵
|
| | | 3 | if (event != null){↵
|
4 | );↵ | | 4 | final SampleResult result = event.getResult();↵
|
5 | if (attr.equals(Constants.ATTRIBUTE_NAME)) {↵ | | 5 | if (↵
|
6 | connector.setName(attributes.getValue(idx));↵ | | |
|
7 | }↵ | | 6 | resultCollector.isSampleWanted(result.isSuccessful())) {↵
|
| | | 7 | visualizer.add(result);↵
|
8 | }↵ | | 8 | }↵
|
9 | } | | 9 | }
|
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 |