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: 5 | Number of AST nodes: 5 | |||
1 | textPane = new InfoViewTextPane();↵ | 1 | textPane = new InfoViewTextPane();↵ | |
2 | try {↵ | 2 | try {↵ | |
3 | textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/LICENSE"));↵ | 3 | textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/ACKNOWLEDGEMENT"));↵ | |
4 | } catch (IOException ioe) {↵ | 4 | } catch (IOException ioe) {↵ | |
5 | textPane.setText(ioe.getLocalizedMessage());↵ | 5 | textPane.setText(ioe.getLocalizedMessage());↵ | |
6 | }↵ | 6 | }↵ | |
7 | licensePanel.add(new JScrollPane(textPane));↵ | 7 | ackPanel.add(new JScrollPane(textPane));↵ | |
8 | tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH,↵ | 8 | tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH,↵ | |
9 | "about", "license"), licensePanel); | 9 | "about", "ackPane"), ackPanel); | |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
Number of mapped statements | 5 |
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) | 46.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
96 | textPane = new InfoViewTextPane(); | 105 | textPane = new InfoViewTextPane(); | ||||||||||||||
97 | try | 106 | try | ||||||||||||||
98 | textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/LICENSE")); |
| 107 | textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/ACKNOWLEDGEMENT")); | |||||||||||||
99 | licensePanel.add(new JScrollPane(textPane)); |
| 108 | ackPanel.add(new JScrollPane(textPane)); | |||||||||||||
100 | tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "license"), licensePanel); |
| 109 | tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "ackPane"), ackPanel); |
Row | Violation |
---|