File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java | |||
Method name: void clearDomainMarkers(int)
|
Method name: void clearRangeMarkers(int)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | if (this.foregroundDomainMarkers != null) {↵ | 1 | if (this.backgroundRangeMarkers != null) {↵ | |
2 | Collection markers↵ | 2 | Collection markers↵ | |
3 | = (Collection) this.foregroundDomainMarkers.get(key);↵ | 3 | = (Collection) this.backgroundRangeMarkers.get(key);↵ | |
4 | if (markers != null) {↵ | 4 | if (markers != null) {↵ | |
5 | Iterator iterator = markers.iterator();↵ | 5 | Iterator iterator = markers.iterator();↵ | |
6 | while (iterator.hasNext()) {↵ | 6 | while (iterator.hasNext()) {↵ | |
7 | Marker m = (Marker) iterator.next();↵ | 7 | Marker m = (Marker) iterator.next();↵ | |
8 | m.removeChangeListener(this);↵ | 8 | m.removeChangeListener(this);↵ | |
9 | }↵ | 9 | }↵ | |
10 | markers.clear();↵ | 10 | markers.clear();↵ | |
11 | }↵ | 11 | }↵ | |
12 | } | 12 |
| |
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 | 22 |
Number of mapped statements | 8 |
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) | 8.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | if (this.foregroundDomainMarkers != null) |
| 2 | if (this.backgroundRangeMarkers != null) | ||||||||||
11 | Collection markers = (Collection)this.foregroundDomainMarkers.get(key); |
| 3 | Collection markers = (Collection)this.backgroundRangeMarkers.get(key); | ||||||||||
12 | if (markers != null) | 4 | if (markers != null) | |||||||||||
13 | Iterator iterator = markers.iterator(); | 5 | Iterator iterator = markers.iterator(); | |||||||||||
14 | while (iterator.hasNext()) | 6 | while (iterator.hasNext()) | |||||||||||
15 | Marker m = (Marker)iterator.next(); | 7 | Marker m = (Marker)iterator.next(); | |||||||||||
16 | m.removeChangeListener(this); | 8 | m.removeChangeListener(this); | |||||||||||
17 | markers.clear(); | 9 | markers.clear(); |
Row | Violation |
---|