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: 3 | Number of AST nodes: 3 | |||
1 | homepageButton = new JButton(ImageLoader↵ | 1 | freebusyButton = new JButton(ImageLoader↵ | |
2 | .getSmallIcon(IconKeys.INTERNET));↵ | 2 | .getSmallIcon(IconKeys.INTERNET));↵ | |
3 | homepageButton.setMargin(new Insets(0, 0, 0, 0));↵ | 3 | freebusyButton.setMargin(new Insets(0, 0, 0, 0));↵ | |
4 | homepageButton.addActionListener(new ActionListener() {↵ | 4 | freebusyButton.addActionListener(new ActionListener() {↵ | |
5 | public void actionPerformed(ActionEvent e) {↵ | 5 | public void actionPerformed(ActionEvent e) {↵ | |
6 | String s = homepageTextField.getText();↵ | 6 | String s = freebusyTextField.getText();↵ | |
7 | try {↵ | 7 | try {↵ | |
8 | URL url = new URL(s);↵ | 8 | URL url = new URL(s);↵ | |
9 | ColumbaDesktop.getInstance().browse(url);↵ | 9 | ColumbaDesktop.getInstance().browse(url);↵ | |
10 | } catch (MalformedURLException e1) {↵ | 10 | } catch (MalformedURLException e1) {↵ | |
11 | e1.printStackTrace();↵ | 11 | e1.printStackTrace();↵ | |
12 | }↵ | 12 | }↵ | |
13 | }↵ | 13 | }↵ | |
14 | }); | 14 |
| |
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 | 4 |
Number of mapped statements | 3 |
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 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60 | homepageButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET)); |
| 78 | freebusyButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET)); | |||||||||||||||
61 | homepageButton.setMargin(new Insets(0, 0, 0, 0)); |
| 79 | freebusyButton.setMargin(new Insets(0, 0, 0, 0)); | |||||||||||||||
62 | homepageButton.addActionListener(new ActionListener() {...}); |
| 80 | freebusyButton.addActionListener(new ActionListener() {...}); |
Row | Violation |
---|---|
1 | Expression homepageButton is a field being modified, and thus it cannot be parameterized |
2 | Expression freebusyButton is a field being modified, and thus it cannot be parameterized |
3 | Expression homepageButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression freebusyButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression homepageButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression freebusyButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |