File path: /jfreechart-1.0.10/src/org/jfree/data/category/SlidingCategoryDataset.java | File path: /jfreechart-1.0.10/src/org/jfree/data/gantt/SlidingGanttCategoryDataset.java | |||
Method name: List getColumnKeys()
|
Method name: List getColumnKeys()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | List result = new java.util.ArrayList();↵ | 1 | List result = new java.util.ArrayList();↵ | |
2 | int last = lastCategoryIndex();↵ | 2 | int last = lastCategoryIndex();↵ | |
3 | for (int i = this.firstCategoryIndex; i < last; i++) {↵ | 3 | for (int i = this.firstCategoryIndex; i < last; i++) {↵ | |
4 | result.add(this.underlying.getColumnKey(i));↵ | 4 | result.add(this.underlying.getColumnKey(i));↵ | |
5 | }↵ | 5 | }↵ | |
6 | return Collections.unmodifiableList(result); | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 3.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | List result = new java.util.ArrayList(); | 1 | List result = new java.util.ArrayList(); | |||||||||||
2 | int last = lastCategoryIndex(); | 2 | int last = lastCategoryIndex(); | |||||||||||
3 | for (int i = this.firstCategoryIndex; i < last; i++) | 3 | for (int i = this.firstCategoryIndex; i < last; i++) | |||||||||||
4 | result.add(this.underlying.getColumnKey(i)); |
| 4 | result.add(this.underlying.getColumnKey(i)); | ||||||||||
5 | return Collections.unmodifiableList(result); | 5 | return Collections.unmodifiableList(result); |
Row | Violation |
---|