Argument item = (Argument) iter.next().getObjectValue();
attr = attrs.get(item.getName());
if (attr == null) {
attr = getBasicAttribute(item.getName(), item.getValue());
} else {
attr.add(item.getValue());
}
attrs.put(attr);
DataSet item = (DataSet)itr.next();
SamplingStatCalculator ss = item.getStatistics(this.getURL());
if (ss != null) {
// we add the entry
dset.add(ss);
if ( getXLabel().equals(X_DATA_FILENAME_LABEL) ) {
xlabels.add(item.getDataSourceName());
} else {
xlabels.add(item.getMonthDayYearDate());
}
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/BarChart.java
|
Method name: Attributes getUserAttributes()
|
|
Method name: JComponent renderChart(List)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 7
|
|
1 | Argument item = (Argument) iter.next().getObjectValue();↵ | | 1 | DataSet item = (DataSet)itr.next()↵
|
2 | ↵ | | 2 | ;↵
|
3 | attr = attrs.get(item.getName());↵ | | 3 | SamplingStatCalculator ↵
|
4 | if (attr == null) {↵ | | |
|
5 | attr = getBasicAttribute(item.getName(), item.getValue());↵ | | |
|
6 | } else {↵ | | |
|
7 | attr.add(item.getValue());↵ | | |
|
8 | }↵ | | |
|
9 | attrs.put(attr); | | 4 | ss = item.getStatistics(this.getURL());↵
|
| | | 5 | if (ss != null) {↵
|
| | | 6 | // we add the entry↵
|
| | | 7 | dset.add(ss);↵
|
| | | 8 | if ( getXLabel().equals(X_DATA_FILENAME_LABEL) ) {↵
|
| | | 9 | xlabels.add(item.getDataSourceName());↵
|
| | | 10 | } else {↵
|
| | | 11 | xlabels.add(item.getMonthDayYearDate());↵
|
| | | 12 | }↵
|
| | | 13 | }
|
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 having the same super class |
Number of node comparisons | 1 |