File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/search/SearchFrame.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/general/MailOptionsDialog.java | |||
Method name: void initComponents()
|
Method name: void initComponents()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | includeSubfolderButton = new CheckBoxWithMnemonic(MailResourceLoader↵ | 1 | sendHtmlMultipartCheckBox = new CheckBoxWithMnemonic(MailResourceLoader↵ | |
2 | .getString("dialog", "filter", "include_subfolders"));↵ | 2 | .getString("dialog", "general", "send_html_multipart"));↵ | |
3 | nameLabel = new LabelWithMnemonic(MailResourceLoader.getString(↵ | 3 | forwardLabel = new LabelWithMnemonic(MailResourceLoader.getString(↵ | |
4 | "dialog", "filter", "execute_actions"));↵ | 4 | "dialog", "general", "forward_as"));↵ | |
5 | String[] cond = {↵ | 5 | String[] items = {↵ | |
6 | MailResourceLoader↵ | 6 | MailResourceLoader↵ | |
7 | .getString("dialog", "filter", "all_criteria↵ | 7 | .getString("dialog", "general",↵ | |
8 | "),↵ | 8 | "forward_as_attachment"),↵ | |
9 | MailResourceLoader↵ | 9 | MailResourceLoader↵ | |
10 | .getString("dialog", "filter", "any_criteria↵ | 10 | .getString("dialog", "general",↵ | |
11 | ") };↵ | 11 | "forward_as_quoted") };↵ | |
12 | condList = new JComboBox(cond); | 12 | forwardComboBox = new JComboBox(items); | |
See real code fragment | See real code fragment |
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 | 7 |
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 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | includeSubfolderButton = new CheckBoxWithMnemonic(MailResourceLoader.getString("dialog", "filter", "include_subfolders")); |
| 14 | sendHtmlMultipartCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString("dialog", "general", "send_html_multipart")); | ||||||||||||||||||||||
7 | nameLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "filter", "execute_actions")); |
| 15 | forwardLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "general", "forward_as")); | ||||||||||||||||||||||
8 | String[] cond = {MailResourceLoader.getString("dialog", "filter", "all_criteria"), MailResourceLoader.getString("dialog", "filter", "any_criteria")}; |
| 16 | String[] items = {MailResourceLoader.getString("dialog", "general", "forward_as_attachment"), MailResourceLoader.getString("dialog", "general", "forward_as_quoted")}; | ||||||||||||||||||||||
9 | condList = new JComboBox(cond); |
| 17 | forwardComboBox = new JComboBox(items); |
Row | Violation |
---|---|
1 | Expression includeSubfolderButton is a field being modified, and thus it cannot be parameterized |
2 | Expression sendHtmlMultipartCheckBox is a field being modified, and thus it cannot be parameterized |
3 | Expression nameLabel is a field being modified, and thus it cannot be parameterized |
4 | Expression forwardLabel is a field being modified, and thus it cannot be parameterized |
5 | Expression condList is a field being modified, and thus it cannot be parameterized |
6 | Expression forwardComboBox is a field being modified, and thus it cannot be parameterized |