this(); HTMLEditorKit editorKit = new HTMLEditorKit(); StyleSheet styles = new StyleSheet(); Font font = UIManager.getFont("Label.font"); String name = font.getName(); int size = font.getSize(); String css = "<style type=\"text/css\"><!--p {font-family:\"" + name + "\"; font-size:\"" + size + "pt\"}--></style>"; styles.addRule(css); editorKit.setStyleSheet(styles);
super(); HTMLEditorKit editorKit = new HTMLEditorKit(); StyleSheet styles = new StyleSheet(); Font font = UIManager.getFont("Label.font"); String name = font.getName(); int size = font.getSize(); String css = "<style type=\"text/css\"><!--p {font-family:\"" + name + "\"; font-size:\"" + size + "pt\"}--></style>"; styles.addRule(css); editorKit.setStyleSheet(styles);
Clone fragments detected by clone detection tool
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: 9 Number of AST nodes: 9
1
this();
2
		
1
super();
2
        
3
HTMLEditorKit editorKit = new HTMLEditorKit();
3
        HTMLEditorKit editorKit = new HTMLEditorKit();
4
		StyleSheet styles = new StyleSheet();
4
        StyleSheet styles = new StyleSheet();
5
		
5
        
6
Font font = UIManager.getFont("Label.font");
6
        Font font = UIManager.getFont("Label.font");
7
		String name = font.getName();
7
        String name = font.getName();
8
		int size = font.getSize();
8
        int size = font.getSize();
9
		String css = "<style type=\"text/css\"><!--p {font-family:\"" + name
9
        String css = "<style type=\"text/css\"><!--p {font-family:\"" + name
10
				+ "\"; font-size:\"" + size + "pt\"}--></style>";
10
            + "\"; font-size:\"" + size + "pt\"}--></style>";
11
		styles.addRule(css);
11
        styles.addRule(css);
12
		editorKit.setStyleSheet(styles);
12
        editorKit.setStyleSheet(styles);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons43
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements8
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                          
    1
    super();
    1
    this();
                        
    2
    HTMLEditorKit editorKit = new HTMLEditorKit();
    2
    HTMLEditorKit editorKit = new HTMLEditorKit();
    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);
    Precondition Violations (0)
    Row Violation