File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/SummaryReport.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/StatGraphVisualizer.java | |||
Method name: void add(SampleResult)
|
Method name: void add(SampleResult)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | row = (Calculator) tableRows.get(sampleLabel);↵ | 1 | row = (SamplingStatCalculator) tableRows.get(sampleLabel);↵ | |
2 | if (row == null) {↵ | 2 | if (row == null) {↵ | |
3 | row = new Calculator(sampleLabel);↵ | 3 | row = new SamplingStatCalculator(sampleLabel);↵ | |
4 | tableRows.put(row.getLabel(), row);↵ | 4 | tableRows.put(row.getLabel(), row);↵ | |
5 | model.insertRow(row, model.getRowCount() - 1);↵ | 5 | model.insertRow(row, model.getRowCount() - 1);↵ | |
6 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 18 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | if (row == null) |
| 5 | if (row == null) | |||||||||||||||
|
| 6 | row = new SamplingStatCalculator(sampleLabel); | ||||||||||||||||
6 | row = new Calculator(sampleLabel); |
| | ||||||||||||||||
7 | tableRows.put(row.getLabel(), row); |
| 7 | tableRows.put(row.getLabel(), row); | |||||||||||||||
8 | model.insertRow(row, model.getRowCount() - 1); |
| 8 | model.insertRow(row, model.getRowCount() - 1); |
Row | Violation |
---|---|
1 | Type org.apache.jmeter.util.Calculator of variable row does not match with type org.apache.jmeter.visualizers.SamplingStatCalculator of variable row |
2 | Unmatched statement row=new SamplingStatCalculator(sampleLabel); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement row=new Calculator(sampleLabel); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Type org.apache.jmeter.util.Calculator of variable row does not match with type org.apache.jmeter.visualizers.SamplingStatCalculator of variable row |
5 | Type org.apache.jmeter.util.Calculator of variable row does not match with type org.apache.jmeter.visualizers.SamplingStatCalculator of variable row |
6 | Type org.apache.jmeter.util.Calculator of variable row does not match with type org.apache.jmeter.visualizers.SamplingStatCalculator of variable row |