super.applyChanges(); _ctrl._prefs.setUseTabbedPaneThickBorders(_useThickBordersChk.isSelected()); // Force the LAF to be set even if Tonic is the current one. This // allows changes to take affect. return true;
super.applyChanges(); _ctrl._prefs.setThemePackName((String)_themePackCmb.getSelectedItem()); // Force the LAF to be set even if Skin is the current one. This // allows a change in theme to take affect. return true;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/TonicLookAndFeelController.java File path: /sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/SkinLookAndFeelController.java
Method name: boolean applyChanges() Method name: boolean applyChanges()
Number of AST nodes: 3 Number of AST nodes: 3
1
super.applyChanges();
1
super.applyChanges();
2
			_ctrl._prefs.setUseTabbedPaneThickBorders(_useThickBordersChk.isSelected());
2
			_ctrl._prefs.setThemePackName((String)_themePackCmb.getSelectedItem());
3
			
3
			
4
			// Force the LAF to be set even if Tonic is the current one. This
4
			// Force the LAF to be set even if Skin is the current one. This
5
			// allows changes to take affect.
5
			// allows a change in theme to take affect.
6
			return true;
6
			return true;
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 statements2
    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.applyChanges();
    1
    super.applyChanges();
    1
    super.applyChanges();
    Preondition Violations
    Super method call super.applyChanges(); cannot be extracted from method
    Super method call super.applyChanges(); cannot be extracted from method
    1
    super.applyChanges();
                                                                                                                                                        
    2
    _ctrl._prefs.setThemePackName((String)_themePackCmb.getSelectedItem());
    Preondition Violations
    Unmatched statement _ctrl._prefs.setThemePackName((String)_themePackCmb.getSelectedItem()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    _ctrl._prefs.setThemePackName((String)_themePackCmb.getSelectedItem());
    2
    _ctrl._prefs.setUseTabbedPaneThickBorders(_useThickBordersChk.isSelected());
    2
    _ctrl._prefs.setUseTabbedPaneThickBorders(_useThickBordersChk.isSelected());
    Preondition Violations
    Unmatched statement _ctrl._prefs.setUseTabbedPaneThickBorders(_useThickBordersChk.isSelected()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                                                                                  
    3
    return true;
    3
    return true;
    Precondition Violations (4)
    Row Violation
    1Super method call super.applyChanges(); cannot be extracted from method
    2Super method call super.applyChanges(); cannot be extracted from method
    3Unmatched statement _ctrl._prefs.setThemePackName((String)_themePackCmb.getSelectedItem()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched statement _ctrl._prefs.setUseTabbedPaneThickBorders(_useThickBordersChk.isSelected()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted