long current = ((Long) perTheadNumber.get()).longValue();
variables.put(getVarName(), formatNumber(current));
current += increment;
if (current > end) {
current = start;
}
perTheadNumber.set(new Long(current));
synchronized (tableRows) {
row = (Calculator) tableRows.get(sampleLabel);
if (row == null) {
row = new Calculator(sampleLabel);
tableRows.put(row.getLabel(), row);
model.insertRow(row, model.getRowCount() - 1);
}
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/modifiers/CounterConfig.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/SummaryReport.java
|
Method name: void iterationStart(LoopIterationEvent)
|
|
Method name: void add(SampleResult)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | long current = ((Long) perTheadNumber.get()).longValue();↵ | | |
|
2 | variables.put(getVarName(), formatNumber(current));↵ | | |
|
3 | current += increment;↵ | | |
|
4 | if (current > end) {↵ | | |
|
5 | current = start;↵ | | |
|
6 | }↵ | | |
|
7 | perTheadNumber.set(new Long(current)); | | 1 | synchronized (tableRows) {↵
|
| | | 2 | row = (Calculator) tableRows.get(sampleLabel);↵
|
| | | 3 | if (row == null) {↵
|
| | | 4 | row = new Calculator(sampleLabel);↵
|
| | | 5 | tableRows.put(row.getLabel(), row);↵
|
| | | 6 | model.insertRow(row, model.getRowCount() - 1);↵
|
| | | 7 | }↵
|
| | | 8 | }
|
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 |