File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/dialog/EditEventDialog.java | File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/dialog/RecurrenceDialog.java | |||
Method name: JPanel createPanel3()
|
Method name: JPanel createUntilDatePanel()
|
|||
Number of AST nodes: 9 | Number of AST nodes: 10 | |||
1 | JPanel jpanel1 = new JPanel();↵ | 1 | JPanel panel = new JPanel();↵ | |
2 | ↵ | |||
2 | FormLayout formlayout1 = new FormLayout(↵ | 3 | FormLayout formlayout1 = new FormLayout( ↵ | |
3 | "FILL:DEFAULT:GROW(1.0),3dlu,FILL:DEFAULT:NONE",↵ | 4 | "FILL:DEFAULT:NONE,FILL:DEFAULT:NONE", ↵ | |
4 | "CENTER:DEFAULT:NONE");↵ | 5 | "CENTER:DEFAULT:NONE"); ↵ | |
5 | CellConstraints cc = new CellConstraints();↵ | 6 | CellConstraints cc = new CellConstraints(); ↵ | |
6 | jpanel1.setLayout(formlayout1);↵ | 7 | panel.setLayout(formlayout1);↵ | |
7 | jpanel1.add(alarmComboBox, cc.xy(1, 1)↵ | |||
8 | );↵ | 8 | rUntilDate.setText("Until ");↵ | |
9 | ↵ | |||
9 | alarmButton.setActionCommand("Customize...");↵ | 10 | rUntilDate.setActionCommand("until"); ↵ | |
10 | alarmButton.setText("Customize..."↵ | 11 | rUntilDate.addActionListener(this);↵ | |
11 | );↵ | 12 | panel.add(rUntilDate, cc.xy(1, 1)); ↵ | |
12 | jpanel1.add(alarmButton, cc.xy(3, 1));↵ | 13 | panel.add(endDatePicker, cc.xy(2, 1));↵ | |
14 | ↵ | |||
13 | return jpanel1; | 15 | return panel; | |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 31 |
Number of mapped statements | 9 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | JPanel jpanel1 = new JPanel(); |
| 1 | JPanel panel = new JPanel(); | ||||||||||||||||||||
2 | FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),3dlu,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 | jpanel1.setLayout(formlayout1); |
| 4 | panel.setLayout(formlayout1); | ||||||||||||||||||||
5 | jpanel1.add(alarmComboBox, cc.xy(1, 1)); |
| 8 | panel.add(rUntilDate, cc.xy(1, 1)); | ||||||||||||||||||||
6 | alarmButton.setActionCommand("Customize..."); |
| 6 | rUntilDate.setActionCommand("until"); | ||||||||||||||||||||
7 | alarmButton.setText("Customize..."); |
| 5 | rUntilDate.setText("Until "); | ||||||||||||||||||||
|
| 7 | rUntilDate.addActionListener(this); | |||||||||||||||||||||
8 | jpanel1.add(alarmButton, cc.xy(3, 1)); |
| 9 | panel.add(endDatePicker, cc.xy(2, 1)); | ||||||||||||||||||||
9 | return jpanel1; |
| 10 | return panel; |
Row | Violation |
---|---|
1 | Expression rUntilDate cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement rUntilDate.addActionListener(this); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Expression alarmButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |