File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/contact/ContactEditorDialog.java | File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/contact/ContactEditorDialog.java | |||
Method name: void initComponents()
|
Method name: void initComponents()
|
|||
Number of AST nodes: 12 | Number of AST nodes: 12 | |||
1 | calendarLabel = new JLabel();↵ | 1 | homepageLabel = new JLabel();↵ | |
2 | panel6 = new JPanel();↵ | 2 | panel1 = new JPanel();↵ | |
3 | calendarTextField = new JTextField();↵ | 3 | homepageTextField = new JTextField();↵ | |
4 | calendarButton = new JButton(ImageLoader↵ | 4 | homepageButton = new JButton(ImageLoader↵ | |
5 | .getSmallIcon(IconKeys.INTERNET));↵ | 5 | .getSmallIcon(IconKeys.INTERNET));↵ | |
6 | calendarButton.setMargin(new Insets(0, 0, 0, 0));↵ | 6 | homepageButton.setMargin(new Insets(0, 0, 0, 0));↵ | |
7 | calendarButton.addActionListener(new ActionListener() {↵ | 7 | homepageButton.addActionListener(new ActionListener() {↵ | |
8 | public void actionPerformed(ActionEvent e) {↵ | 8 | public void actionPerformed(ActionEvent e) {↵ | |
9 | String s = calendarTextField.getText();↵ | 9 | String s = homepageTextField.getText();↵ | |
10 | try {↵ | 10 | try {↵ | |
11 | URL url = new URL(s);↵ | 11 | URL url = new URL(s);↵ | |
12 | ColumbaDesktop.getInstance().browse(url);↵ | 12 | ColumbaDesktop.getInstance().browse(url);↵ | |
13 | } catch (MalformedURLException e1) {↵ | 13 | } catch (MalformedURLException e1) {↵ | |
14 | e1.printStackTrace();↵ | 14 | e1.printStackTrace();↵ | |
15 | }↵ | 15 | }↵ | |
16 | }↵ | 16 | }↵ | |
17 | });↵ | 17 | });↵ | |
18 | freebusyLabel = new JLabel();↵ | 18 | weblogLabel = new JLabel();↵ | |
19 | panel8 = new JPanel();↵ | 19 | panel5 = new JPanel();↵ | |
20 | freebusyTextField = new JTextField();↵ | 20 | weblogTextField = new JTextField();↵ | |
21 | freebusyButton = new JButton(ImageLoader↵ | 21 | weblogButton = new JButton(ImageLoader↵ | |
22 | .getSmallIcon(IconKeys.INTERNET));↵ | 22 | .getSmallIcon(IconKeys.INTERNET));↵ | |
23 | freebusyButton.setMargin(new Insets(0, 0, 0, 0));↵ | 23 | weblogButton.setMargin(new Insets(0, 0, 0, 0));↵ | |
24 | freebusyButton.addActionListener(new ActionListener() {↵ | 24 | weblogButton.addActionListener(new ActionListener() {↵ | |
25 | public void actionPerformed(ActionEvent e) {↵ | 25 | public void actionPerformed(ActionEvent e) {↵ | |
26 | String s = freebusyTextField.getText();↵ | 26 | String s = weblogTextField.getText();↵ | |
27 | try {↵ | 27 | try {↵ | |
28 | URL url = new URL(s);↵ | 28 | URL url = new URL(s);↵ | |
29 | ColumbaDesktop.getInstance().browse(url);↵ | 29 | ColumbaDesktop.getInstance().browse(url);↵ | |
30 | } catch (MalformedURLException e1) {↵ | 30 | } catch (MalformedURLException e1) {↵ | |
31 | e1.printStackTrace();↵ | 31 | e1.printStackTrace();↵ | |
32 | }↵ | 32 | }↵ | |
33 | }↵ | 33 | }↵ | |
34 | }); | 34 |
| |
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 in the same method |
Number of node comparisons | 59 |
Number of mapped statements | 12 |
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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
69 | calendarLabel = new JLabel(); |
| 63 | weblogLabel = new JLabel(); | |||||||||||||||||
70 | panel6 = new JPanel(); |
| 64 | panel5 = new JPanel(); | |||||||||||||||||
71 | calendarTextField = new JTextField(); |
| 65 | weblogTextField = new JTextField(); | |||||||||||||||||
72 | calendarButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET)); |
| 66 | weblogButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET)); | |||||||||||||||||
73 | calendarButton.setMargin(new Insets(0, 0, 0, 0)); |
| 67 | weblogButton.setMargin(new Insets(0, 0, 0, 0)); | |||||||||||||||||
74 | calendarButton.addActionListener(new ActionListener() {...}); |
| 68 | weblogButton.addActionListener(new ActionListener() {...}); | |||||||||||||||||
75 | freebusyLabel = new JLabel(); |
| 57 | homepageLabel = new JLabel(); | |||||||||||||||||
76 | panel8 = new JPanel(); |
| 58 | panel1 = new JPanel(); | |||||||||||||||||
77 | freebusyTextField = new JTextField(); |
| 59 | homepageTextField = new JTextField(); | |||||||||||||||||
78 | freebusyButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET)); |
| 60 | homepageButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET)); | |||||||||||||||||
79 | freebusyButton.setMargin(new Insets(0, 0, 0, 0)); |
| 61 | homepageButton.setMargin(new Insets(0, 0, 0, 0)); | |||||||||||||||||
80 | freebusyButton.addActionListener(new ActionListener() {...}); |
| 62 | homepageButton.addActionListener(new ActionListener() {...}); |
Row | Violation |
---|---|
1 | Expression calendarLabel is a field being modified, and thus it cannot be parameterized |
2 | Expression weblogLabel is a field being modified, and thus it cannot be parameterized |
3 | Expression panel6 is a field being modified, and thus it cannot be parameterized |
4 | Expression panel5 is a field being modified, and thus it cannot be parameterized |
5 | Expression calendarTextField is a field being modified, and thus it cannot be parameterized |
6 | Expression weblogTextField is a field being modified, and thus it cannot be parameterized |
7 | Expression calendarButton is a field being modified, and thus it cannot be parameterized |
8 | Expression weblogButton is a field being modified, and thus it cannot be parameterized |
9 | Expression calendarButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression weblogButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression calendarTextField cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression weblogTextField cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression calendarButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression weblogButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression freebusyLabel is a field being modified, and thus it cannot be parameterized |
16 | Expression homepageLabel is a field being modified, and thus it cannot be parameterized |
17 | Expression panel8 is a field being modified, and thus it cannot be parameterized |
18 | Expression panel1 is a field being modified, and thus it cannot be parameterized |
19 | Expression freebusyTextField is a field being modified, and thus it cannot be parameterized |
20 | Expression homepageTextField is a field being modified, and thus it cannot be parameterized |
21 | Expression freebusyButton is a field being modified, and thus it cannot be parameterized |
22 | Expression homepageButton is a field being modified, and thus it cannot be parameterized |
23 | Expression freebusyButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
24 | Expression homepageButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
25 | Expression freebusyTextField cannot be parameterized, because it has dependencies to/from statements that will be extracted |
26 | Expression homepageTextField cannot be parameterized, because it has dependencies to/from statements that will be extracted |
27 | Expression freebusyButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
28 | Expression homepageButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |