File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/InfoViewerDialog.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/InfoViewTextPane.java | |||
Method name: void InfoViewerDialog(String)
|
Method name: void InfoViewTextPane()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | StyleSheet styles = new StyleSheet();↵ | 1 | StyleSheet styles = new StyleSheet();↵ | |
2 | ↵ | 2 | ↵ | |
3 | Font font = UIManager.getFont("Label.font");↵ | 3 | Font font = UIManager.getFont("Label.font");↵ | |
4 | String name = font.getName();↵ | 4 | String name = font.getName();↵ | |
5 | int size = font.getSize();↵ | 5 | int size = font.getSize();↵ | |
6 | String css = "<style type=\"text/css\"><!--p {font-family:\"" + name↵ | 6 | String css = "<style type=\"text/css\"><!--p {font-family:\"" + name↵ | |
7 | + "\"; font-size:\"" + size + "pt\"}--></style>";↵ | 7 | + "\"; font-size:\"" + size + "pt\"}--></style>";↵ | |
8 | styles.addRule(css);↵ | 8 | styles.addRule(css);↵ | |
9 | editorKit.setStyleSheet(styles); | 9 | editorKit.setStyleSheet(styles); | |
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 different classes having the same super class |
Number of node comparisons | 29 |
Number of mapped statements | 7 |
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 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
3 | StyleSheet styles = new StyleSheet(); | 3 | StyleSheet styles = new StyleSheet(); | |
4 | Font font = UIManager.getFont("Label.font"); | 4 | Font font = UIManager.getFont("Label.font"); | |
5 | String name = font.getName(); | 5 | String name = font.getName(); | |
6 | int size = font.getSize(); | 6 | int size = font.getSize(); | |
7 | String css = "<style type=\"text/css\"><!--p {font-family:\"" + name + "\"; font-size:\"" + size + "pt\"}--></style>"; | 7 | String css = "<style type=\"text/css\"><!--p {font-family:\"" + name + "\"; font-size:\"" + size + "pt\"}--></style>"; | |
8 | styles.addRule(css); | 8 | styles.addRule(css); | |
9 | editorKit.setStyleSheet(styles); | 9 | editorKit.setStyleSheet(styles); |
Row | Violation |
---|---|
1 | The refactoring of the clones is infeasible, because classes org.columba.core.gui.base.InfoViewerDialog and org.columba.core.gui.util.InfoViewTextPane do not have a common superclass |