super(view,jEdit.getProperty("search.title"),false); this.view = view; JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(0,12,12,12)); setContentPane(content);
super(view,jEdit.getProperty("add-abbrev.title"),true); this.view = view; JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/search/SearchDialog.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/AddAbbrevDialog.java
Method name: void SearchDialog(View) Method name: void AddAbbrevDialog(View, String)
Number of AST nodes: 5 Number of AST nodes: 5
1
super(view,jEdit.getProperty("search.title"),false);
1
super(view,jEdit.getProperty("add-abbrev.title"),true);
2
		this.view = view;
2
		this.view = view;
3
		JPanel content = new JPanel(new BorderLayout());
3
		JPanel content = new JPanel(new BorderLayout());
4
		content.setBorder(new EmptyBorder(0,12,12,12));
4
		content.setBorder(new EmptyBorder(12,12,12,12));
5
		setContentPane(content);
5
		setContentPane(content);
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 comparisons11
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super(view, jEdit.getProperty("search.title"), false);
    1
    super(view, jEdit.getProperty("search.title"), false);
    1
    super(view, jEdit.getProperty("add-abbrev.title"), true);
    Differences
    Expression1Expression2Difference
    "search.title""add-abbrev.title"LITERAL_VALUE_MISMATCH
    falsetrueLITERAL_VALUE_MISMATCH
    1
    super(view, jEdit.getProperty("add-abbrev.title"), true);
    2
    this.view = view;
    2
    this.view = view;
    3
    JPanel content = new JPanel(new BorderLayout());
    3
    JPanel content = new JPanel(new BorderLayout());
    4
    content.setBorder(new EmptyBorder(0, 12, 12, 12));
    4
    content.setBorder(new EmptyBorder(0, 12, 12, 12));
    4
    content.setBorder(new EmptyBorder(12, 12, 12, 12));
    Differences
    Expression1Expression2Difference
    012LITERAL_VALUE_MISMATCH
    4
    content.setBorder(new EmptyBorder(12, 12, 12, 12));
    5
    setContentPane(content);
    5
    setContentPane(content);
    Precondition Violations (0)
    Row Violation