File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/AboutDialog.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/AboutDialog.java | |||
Method name: void init()
|
Method name: void init()
|
|||
Number of AST nodes: 12 | Number of AST nodes: 12 | |||
1 | c.gridx = 2;↵ | 1 | c.gridx = 2;↵ | |
2 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | 2 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | |
3 | authorPanel.add(version, c);↵ | 3 | authorPanel.add(buildDate, c);↵ | |
4 | JLabel buildDateLabel = new JLabel(GlobalResourceLoader.getString(↵ | 4 | JLabel authorLabel = new JLabel(GlobalResourceLoader.getString(↵ | |
5 | RESOURCE_BUNDLE_PATH, "about", "build_date"));↵ | 5 | RESOURCE_BUNDLE_PATH, "about", "authors"));↵ | |
6 | if (font != null) {↵ | 6 | if (font != null) {↵ | |
7 | font = font.deriveFont(Font.BOLD);↵ | 7 | font = font.deriveFont(Font.BOLD);↵ | |
8 | buildDateLabel.setFont(font);↵ | 8 | authorLabel.setFont(font);↵ | |
9 | }↵ | 9 | }↵ | |
10 | c.gridx = 0;↵ | 10 | c.gridx = 0;↵ | |
11 | c.gridy = 2;↵ | 11 | c.gridy = 3;↵ | |
12 | c.gridwidth = 1;↵ | 12 | c.gridwidth = 1;↵ | |
13 | box = Box.createRigidArea(new Dimension(10, 10));↵ | 13 | box = Box.createRigidArea(new Dimension(10, 10));↵ | |
14 | authorPanel.add(box, c); | 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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 74 |
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) | 4.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
29 | c.gridx = 2; | 48 | c.gridx = 2; | ||||||||||||||
30 | c.gridwidth = GridBagConstraints.REMAINDER; | 49 | c.gridwidth = GridBagConstraints.REMAINDER; | ||||||||||||||
31 | authorPanel.add(version, c); |
| 50 | authorPanel.add(buildDate, c); | |||||||||||||
32 | JLabel buildDateLabel = new JLabel(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "build_date")); |
| 51 | JLabel authorLabel = new JLabel(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "authors")); | |||||||||||||
33 | if (font != null) | 52 | if (font != null) | ||||||||||||||
34 | font = font.deriveFont(Font.BOLD); | 53 | font = font.deriveFont(Font.BOLD); | ||||||||||||||
35 | buildDateLabel.setFont(font); |
| 54 | authorLabel.setFont(font); | |||||||||||||
36 | c.gridx = 0; | 55 | c.gridx = 0; | ||||||||||||||
37 | c.gridy = 2; |
| 56 | c.gridy = 3; | |||||||||||||
38 | c.gridwidth = 1; | 57 | c.gridwidth = 1; | ||||||||||||||
39 | box = Box.createRigidArea(new Dimension(10, 10)); | 58 | box = Box.createRigidArea(new Dimension(10, 10)); | ||||||||||||||
40 | authorPanel.add(box, c); | 59 | authorPanel.add(box, c); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables buildDateLabel, font , while Clone fragment #2 returns variables authorLabel, font |