okButton = new ButtonWithMnemonic(MailResourceLoader.getString(
"global", "ok"));
okButton.setActionCommand("OK");
okButton.addActionListener(this);
cancelButton = new ButtonWithMnemonic(MailResourceLoader.getString(
"global", "cancel"));
cancelButton.setActionCommand("CANCEL");
cancelButton.addActionListener(this);
okButton = new ButtonWithMnemonic(MailResourceLoader.getString(
"global", "ok"));
okButton.setActionCommand("OK");
okButton.addActionListener(this);
cancelButton = new ButtonWithMnemonic(MailResourceLoader.getString(
"global", "cancel"));
cancelButton.setActionCommand("CANCEL");
cancelButton.addActionListener(this);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/general/MailOptionsDialog.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/tree/util/CreateFolderDialog.java
|
Method name: void initComponents()
|
|
Method name: void initComponents()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | okButton = new ButtonWithMnemonic(MailResourceLoader.getString(↵ | | 1 | okButton = new ButtonWithMnemonic(MailResourceLoader.getString(↵
|
2 | "global", "ok"));↵ | | 2 | "global", "ok"));↵
|
3 | okButton.setActionCommand("OK");↵ | | 3 | okButton.setActionCommand("OK");↵
|
4 | okButton.addActionListener(this);↵ | | 4 | okButton.addActionListener(this);↵
|
|
5 | cancelButton = new ButtonWithMnemonic(MailResourceLoader.getString(↵ | | 5 | cancelButton = new ButtonWithMnemonic(MailResourceLoader.getString(↵
|
6 | "global", "cancel"));↵ | | 6 | "global", "cancel"));↵
|
7 | cancelButton.setActionCommand("CANCEL");↵ | | 7 | cancelButton.setActionCommand("CANCEL");↵
|
8 | cancelButton.addActionListener(this); | | 8 | cancelButton.addActionListener(this);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 19 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
33 | okButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "ok")); | | 19 | okButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "ok")); |
34 | okButton.setActionCommand("OK"); | | 20 | okButton.setActionCommand("OK"); |
35 | okButton.addActionListener(this); | | 21 | okButton.addActionListener(this); |
36 | cancelButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "cancel")); | | 22 | cancelButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "cancel")); |
37 | cancelButton.setActionCommand("CANCEL"); | | 23 | cancelButton.setActionCommand("CANCEL"); |
38 | cancelButton.addActionListener(this); | | 24 | cancelButton.addActionListener(this); |
Precondition Violations (0)
Row |
Violation |