File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/data/statistics/DefaultBoxAndWhiskerCategoryDataset.java | |||
Method name: CategoryAxis getDomainAxisForDataset(int)
|
Method name: List getOutliers(Comparable, Comparable)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | CategoryAxis result = getDomainAxis();↵ | 1 | List result = ↵ | |
2 | Integer axisIndex = (Integer) this.datasetToDomainAxisMap.get(index↵ | 2 | null;↵ | |
3 | BoxAndWhiskerItem item = (BoxAndWhiskerItem) this.data.getObject(↵ | |||
3 | );↵ | 4 | rowKey, columnKey);↵ | |
4 | if (axisIndex != null) {↵ | 5 | if (item != null) {↵ | |
5 | result = getDomainAxis(axisIndex.intValue());↵ | 6 | result = item.getOutliers();↵ | |
6 | }↵ | 7 | }↵ | |
7 | return result; | 8 |
| |
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 |
Number of node comparisons | 13 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 1.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | List result = null; | ||||||||||||||||
1 | CategoryAxis result = getDomainAxis(); | | ||||||||||||||||
| 2 | BoxAndWhiskerItem item = (BoxAndWhiskerItem)this.data.getObject(rowKey, columnKey); | ||||||||||||||||
2 | Integer axisIndex = (Integer)this.datasetToDomainAxisMap.get(index); | | ||||||||||||||||
3 | if (axisIndex != null) |
| 3 | if (item != null) | ||||||||||||||
|
| 4 | result = item.getOutliers(); | |||||||||||||||
4 | result = getDomainAxis(axisIndex.intValue()); |
| | |||||||||||||||
|
| 5 | return result; | |||||||||||||||
5 | return result; |
| |
Row | Violation |
---|---|
1 | Type java.lang.Integer of variable axisIndex does not match with type org.jfree.data.statistics.BoxAndWhiskerItem of variable item |
2 | Unmatched statement result=item.getOutliers(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Unmatched statement result=getDomainAxis(axisIndex.intValue()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Unmatched return result; |
5 | Unmatched return result; |
6 | The refactoring of the clones is infeasible, because the number of macthed statements is equal to zero |