public class CheckBoxWithMnemonic extends JCheckBox { /** * default constructor */ public CheckBoxWithMnemonic() { super(); } /** * @param str text including a mnemonic */ public CheckBoxWithMnemonic(String textWithMnemonic) { super(); // set display text - possible with a mnemonic defined using & MnemonicSetter.setTextWithMnemonic(this, textWithMnemonic);
public class RadioButtonWithMnemonic extends JRadioButton { /** * default constructor */ public RadioButtonWithMnemonic() { super(); } /** * @param str text including a mnemonic */ public RadioButtonWithMnemonic(String textWithMnemonic) { super(); // set display text - possibly with a mnemonic defined using & MnemonicSetter.setTextWithMnemonic(this, textWithMnemonic);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/CheckBoxWithMnemonic.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/RadioButtonWithMnemonic.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class CheckBoxWithMnemonic extends JCheckBox {
1
public class RadioButtonWithMnemonic extends JRadioButton {
2
    /**
2
    /**
3
 * default constructor
3
 * default constructor
4
 */
4
 */
5
    public CheckBoxWithMnemonic() {
5
    public RadioButtonWithMnemonic() {
6
        super();
6
        super();
7
    }
7
    }
8
    /**
8
    /**
9
 * @param str        text including a mnemonic
9
 * @param str        text including a mnemonic
10
 */
10
 */
11
    public CheckBoxWithMnemonic(String textWithMnemonic) {
11
    public RadioButtonWithMnemonic(String textWithMnemonic) {
12
        super();
12
        super();
13
        // set display text - possible with a mnemonic defined using &
13
        // set display text - possibly with a mnemonic defined using &
14
        MnemonicSetter.setTextWithMnemonic(this, textWithMnemonic);
14
        MnemonicSetter.setTextWithMnemonic(this, textWithMnemonic);
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0