File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/dialog/RecurrenceDialog.java | File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/dialog/RecurrenceDialog.java | |||
Method name: JPanel createMaxOccurrencesPanel()
|
Method name: JPanel createUntilDatePanel()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | JPanel panel = new JPanel();↵ | 1 | JPanel panel = new JPanel();↵ | |
2 | FormLayout formlayout1 = new FormLayout(↵ | 2 | FormLayout formlayout1 = new FormLayout(↵ | |
3 | "FILL:DEFAULT:NONE,FILL:DEFAULT:NONE",↵ | 3 | "FILL:DEFAULT:NONE,FILL:DEFAULT:NONE",↵ | |
4 | "CENTER:DEFAULT:NONE");↵ | 4 | "CENTER:DEFAULT:NONE");↵ | |
5 | CellConstraints cc = new CellConstraints();↵ | 5 | CellConstraints cc = new CellConstraints();↵ | |
6 | panel.setLayout(formlayout1);↵ | 6 | panel.setLayout(formlayout1);↵ | |
7 | rMaxOccurrences.setText("Maximum recurrences");↵ | 7 | r↵ | |
8 | rMaxOccurrences↵ | 8 | UntilDate.setText("Until ");↵ | |
9 | .setActionCommand("maximum"); | 9 | rUntilDate.setActionCommand("until"); | |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 13 |
Number of mapped statements | 6 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | JPanel panel = new JPanel(); | 1 | JPanel panel = new JPanel(); | ||||||||||||||
2 | FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE"); | 2 | FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE"); | ||||||||||||||
3 | CellConstraints cc = new CellConstraints(); | 3 | CellConstraints cc = new CellConstraints(); | ||||||||||||||
4 | panel.setLayout(formlayout1); | 4 | panel.setLayout(formlayout1); | ||||||||||||||
5 | rMaxOccurrences.setText("Maximum recurrences"); |
| 5 | rUntilDate.setText("Until "); | |||||||||||||
6 | rMaxOccurrences.setActionCommand("maximum"); |
| 6 | rUntilDate.setActionCommand("until"); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables panel, cc , while Clone fragment #2 returns variables panel, cc |