_columnCombo = new JComboBox(columnList.toArray()); _tableName = tableName; createUserInterface();
super(owner, s_stringMgr.getString("PluginSummaryDialog.title")); _app = app; createGUI();
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/sqlfilter/OrderByClausePanel.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/plugin/PluginSummaryDialog.java
Method name: void OrderByClauseSubPanel(SortedSet, String) Method name: void PluginSummaryDialog(IApplication, Frame)
Number of AST nodes: 3 Number of AST nodes: 3
1
_columnCombo = new JComboBox(columnList.toArray());
2
			_tableName = tableName
1
super(owner, s_stringMgr.getString("PluginSummaryDialog.title"));
3
;
2
		_app = app;
4
			createUserInterface();
3
		createGUI();
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 having the same super class
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(owner, s_stringMgr.getString("PluginSummaryDialog.title"));
    1
    _columnCombo = new JComboBox(columnList.toArray());
    1
    _columnCombo = new JComboBox(columnList.toArray());
    Preondition Violations
    Unmatched statement _columnCombo=new JComboBox(columnList.toArray()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                            
                            
    2
    _app = app;
    Preondition Violations
    Unmatched statement _app=app; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    _app = app;
    2
    _tableName = tableName;
    2
    _tableName = tableName;
    Preondition Violations
    Unmatched statement _tableName=tableName; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                    
    3
    createUserInterface();
    3
    createUserInterface();
    3
    createGUI();
    Differences
    Expression1Expression2Difference
    createUserInterfacecreateGUIMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression createUserInterface() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method createUserInterface
    Expression createGUI() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method createGUI
    Expression createUserInterface() is a void method call, and thus it cannot be parameterized
    Expression createGUI() is a void method call, and thus it cannot be parameterized
    3
    createGUI();
    Precondition Violations (8)
    Row Violation
    1Unmatched statement _columnCombo=new JComboBox(columnList.toArray()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement _app=app; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3Unmatched statement _tableName=tableName; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Expression createUserInterface() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression createGUI() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression createUserInterface() is a void method call, and thus it cannot be parameterized
    7Expression createGUI() is a void method call, and thus it cannot be parameterized
    8The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.client.session.sqlfilter.OrderByClausePanel.OrderByClauseSubPanel and net.sourceforge.squirrel_sql.client.plugin.PluginSummaryDialog do not have a common superclass