executeActionLabel = new LabelWithMnemonic(MailResourceLoader
.getString("dialog", "filter", "execute_actions"));
String[] cond = {
MailResourceLoader
.getString("dialog", "filter", "all_criteria"),
MailResourceLoader
.getString("dialog", "filter", "any_criteria") };
condList = new JComboBox(cond);
nameLabel = new LabelWithMnemonic(MailResourceLoader.getString(
"dialog", "filter", "execute_actions"));
String[] cond = {
MailResourceLoader
.getString("dialog", "filter", "all_criteria"),
MailResourceLoader
.getString("dialog", "filter", "any_criteria") };
condList = new JComboBox(cond);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/FilterDialog.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/search/SearchFrame.java
|
Method name: void initComponents()
|
|
Method name: void initComponents()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | executeActionLabel = new LabelWithMnemonic(MailResourceLoader↵ | | 1 | nameLabel = new LabelWithMnemonic(MailResourceLoader↵
|
2 | .getString(↵ | | 2 | .getString(↵
|
3 | "dialog", "filter", "execute_actions"));↵ | | 3 | "dialog", "filter", "execute_actions"));↵
|
|
4 | String[] cond = {↵ | | 4 | String[] cond = {↵
|
5 | MailResourceLoader↵ | | 5 | MailResourceLoader↵
|
6 | .getString("dialog", "filter", "all_criteria"),↵ | | 6 | .getString("dialog", "filter", "all_criteria"),↵
|
7 | MailResourceLoader↵ | | 7 | MailResourceLoader↵
|
8 | .getString("dialog", "filter", "any_criteria") };↵ | | 8 | .getString("dialog", "filter", "any_criteria") };↵
|
9 | condList = new JComboBox(cond); | | 9 | condList = new JComboBox(cond);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 4 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 3 |
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 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
5 | executeActionLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "filter", "execute_actions")); | | 7 | nameLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "filter", "execute_actions")); |
6 | String[] cond = {MailResourceLoader.getString("dialog", "filter", "all_criteria"), MailResourceLoader.getString("dialog", "filter", "any_criteria")}; | | 8 | String[] cond = {MailResourceLoader.getString("dialog", "filter", "all_criteria"), MailResourceLoader.getString("dialog", "filter", "any_criteria")}; |
7 | condList = new JComboBox(cond); | | 9 | condList = new JComboBox(cond); |
Precondition Violations (2)
Row |
Violation |
1 | Expression executeActionLabel is a field being modified, and thus it cannot be parameterized |
2 | Expression nameLabel is a field being modified, and thus it cannot be parameterized |