super(); setFamily(DEFAULT_FAMILY); setSize(12);
if (_updateableModel != null && allowEditing==false) { addSeparator(); add(_insertRow); add(_deleteRows); }
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/FontInfo.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/TablePopupMenu.java
Method name: void FontInfo() Method name: void TablePopupMenu(boolean, IDataSetUpdateableModel, DataSetViewerTablePanel)
Number of AST nodes: 3 Number of AST nodes: 4
1
super();
2
		setFamily(DEFAULT_FAMILY);
3
		setSize(12);
1
if (_updateableModel != null && allowEditing==false) {
2
			addSeparator();
3
			add(_insertRow);
4
			add(_deleteRows);
5
		}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super();
                          
    2
    setFamily(DEFAULT_FAMILY);
    2
    setFamily(DEFAULT_FAMILY);
    33
    addSeparator();
    Differences
    Expression1Expression2Difference
    setFamilyaddSeparatorMETHOD_INVOCATION_NAME_MISMATCH
    setFamily(DEFAULT_FAMILY)addSeparator()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression setFamily(DEFAULT_FAMILY) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression setFamily(DEFAULT_FAMILY) is a void method call, and thus it cannot be parameterized
    Expression addSeparator() is a void method call, and thus it cannot be parameterized
    Expression setFamily(DEFAULT_FAMILY) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression setFamily(DEFAULT_FAMILY) is a void method call, and thus it cannot be parameterized
    Expression addSeparator() is a void method call, and thus it cannot be parameterized
    33
    addSeparator();
    3
    setSize(12);
    3
    setSize(12);
    Preondition Violations
    Unmatched statement setSize(12); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                  
                                            
    34
    add(_insertRow);
                                              
    35
    add(_deleteRows);
    Precondition Violations (8)
    Row Violation
    1Expression setFamily(DEFAULT_FAMILY) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression setFamily(DEFAULT_FAMILY) is a void method call, and thus it cannot be parameterized
    3Expression addSeparator() is a void method call, and thus it cannot be parameterized
    4Expression setFamily(DEFAULT_FAMILY) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression setFamily(DEFAULT_FAMILY) is a void method call, and thus it cannot be parameterized
    6Expression addSeparator() is a void method call, and thus it cannot be parameterized
    7Unmatched statement setSize(12); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    8The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.fw.gui.FontInfo and net.sourceforge.squirrel_sql.fw.gui.TablePopupMenu do not have a common superclass