super.addNotify(); _lafComboListener = new LookAndFeelComboListener(); _lafCmb.addActionListener(_lafComboListener);
super.setUp(); classUnderTest = new SystemFunctionsTab(); clazz = SystemFunctionsTab.class;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/LAFPreferencesTab.java File path: /sql12/test/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/tabs/database/SystemFunctionsTabTest.java
Method name: void addNotify() Method name: void setUp()
Number of AST nodes: 3 Number of AST nodes: 3
1
super.addNotify();
1
super.
2
			_lafComboListener = new LookAndFeelComboListener();
3
			_lafCmb.addActionListener(_lafComboListener)
2
setUp();
3
		classUnderTest = new SystemFunctionsTab();
4
;
4
		clazz = SystemFunctionsTab.class;
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.addNotify();
                                              
                                                                                          
    2
    classUnderTest = new SystemFunctionsTab();
    Preondition Violations
    Unmatched statement classUnderTest=new SystemFunctionsTab(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    classUnderTest = new SystemFunctionsTab();
    2
    _lafComboListener = new LookAndFeelComboListener();
    2
    _lafComboListener = new LookAndFeelComboListener();
    Preondition Violations
    Unmatched statement _lafComboListener=new LookAndFeelComboListener(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                            
    3
    _lafCmb.addActionListener(_lafComboListener);
    3
    _lafCmb.addActionListener(_lafComboListener);
    1
    super.setUp();
    Differences
    Expression1Expression2Difference
    _lafCmb.addActionListener(_lafComboListener)super.setUp()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression _lafCmb.addActionListener(_lafComboListener) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _lafCmb.addActionListener(_lafComboListener) is a void method call, and thus it cannot be parameterized
    Expression super.setUp() is a void method call, and thus it cannot be parameterized
    Super method call super.setUp(); cannot be extracted from method
    1
    super.setUp();
                                                                        
    3
    clazz = SystemFunctionsTab.class;
    Preondition Violations
    Unmatched statement clazz=SystemFunctionsTab.class; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    clazz = SystemFunctionsTab.class;
    Precondition Violations (8)
    Row Violation
    1Unmatched statement classUnderTest=new SystemFunctionsTab(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement _lafComboListener=new LookAndFeelComboListener(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3Expression _lafCmb.addActionListener(_lafComboListener) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression _lafCmb.addActionListener(_lafComboListener) is a void method call, and thus it cannot be parameterized
    5Expression super.setUp() is a void method call, and thus it cannot be parameterized
    6Super method call super.setUp(); cannot be extracted from method
    7Unmatched statement clazz=SystemFunctionsTab.class; 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.plugins.laf.LAFPreferencesTab.LAFPreferencesPanel and net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.tabs.database.SystemFunctionsTabTest do not have a common superclass