storePasswordCheckBox = new CheckBoxWithMnemonic(MailResourceLoader
.getString("dialog", "account",
"store_password_in_configuration_file"));
storePasswordCheckBox.setActionCommand("SAVE");
storePasswordCheckBox.addActionListener(this);
secureCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString(
"dialog", "account", "use_SSL_for_secure_connection"));
storePasswordCheckBox = new CheckBoxWithMnemonic(MailResourceLoader
.getString("dialog", "account",
"store_password_in_configuration_file"));
storePasswordCheckBox.setActionCommand("SAVE");
storePasswordCheckBox.addActionListener(this);
secureCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString(
"dialog", "account", "use_SSL_for_secure_connection"));
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/IncomingServerPanel.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/OutgoingServerPanel.java
|
Method name: void initComponents()
|
|
Method name: void initComponents()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | storePasswordCheckBox = new CheckBoxWithMnemonic(MailResourceLoader↵ | | 1 | storePasswordCheckBox = new CheckBoxWithMnemonic(MailResourceLoader↵
|
2 | .getString("dialog", "account",↵ | | 2 | .getString("dialog", "account",↵
|
3 | "store_password_in_configuration_file"));↵ | | 3 | "store_password_in_configuration_file"));↵
|
|
4 | storePasswordCheckBox.setActionCommand("SAVE");↵ | | 4 | storePasswordCheckBox.setActionCommand("SAVE");↵
|
5 | storePasswordCheckBox.addActionListener(this);↵ | | 5 | storePasswordCheckBox.addActionListener(this);↵
|
|
6 | secureCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString(↵ | | 6 | secureCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString(↵
|
7 | "dialog", "account", "use_SSL_for_secure_connection")); | | 7 | "dialog", "account", "use_SSL_for_secure_connection"));
|
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 | 7 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
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 |
26 | storePasswordCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString("dialog", "account", "store_password_in_configuration_file")); | | 13 | storePasswordCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString("dialog", "account", "store_password_in_configuration_file")); |
27 | storePasswordCheckBox.setActionCommand("SAVE"); | | 14 | storePasswordCheckBox.setActionCommand("SAVE"); |
28 | storePasswordCheckBox.addActionListener(this); | | 15 | storePasswordCheckBox.addActionListener(this); |
29 | secureCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString("dialog", "account", "use_SSL_for_secure_connection")); | | 16 | secureCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString("dialog", "account", "use_SSL_for_secure_connection")); |
Precondition Violations (0)
Row |
Violation |