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: 3 | Number of AST nodes: 3 | |||
1 | nameLabel = new LabelWithMnemonic(MailResourceLoader.getString(↵ | 1 | forwardLabel = new LabelWithMnemonic(MailResourceLoader.getString(↵ | |
2 | "dialog", "filter", "execute_actions"));↵ | 2 | "dialog", "general", "forward_as"));↵ | |
3 | String[] cond = {↵ | 3 | String[] items = {↵ | |
4 | MailResourceLoader↵ | 4 | MailResourceLoader↵ | |
5 | .getString("dialog", "filter", "all_criteria↵ | 5 | .getString("dialog", "general",↵ | |
6 | "),↵ | 6 | "forward_as_attachment"),↵ | |
7 | MailResourceLoader↵ | 7 | MailResourceLoader↵ | |
8 | .getString("dialog", "filter", "any_criteria↵ | 8 | .getString("dialog", "general",↵ | |
9 | ") };↵ | 9 | "forward_as_quoted") };↵ | |
10 | condList = new JComboBox(cond); | 10 | 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 | 4 |
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 |
ID | Statement | ID | Statement | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 nameLabel is a field being modified, and thus it cannot be parameterized |
2 | Expression forwardLabel is a field being modified, and thus it cannot be parameterized |
3 | Expression condList is a field being modified, and thus it cannot be parameterized |
4 | Expression forwardComboBox is a field being modified, and thus it cannot be parameterized |