File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/mailchecking/POP3MailCheckingAction.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/main/MailMain.java | |||
Method name: void check()
|
Method name: void handleCommandLineParameters(CommandLine)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 6 | |||
1 | POP3Server controller = POP3ServerCollection.getInstance().uidGet(accountUid);↵ | |||
2 | ↵ | |||
3 | setEnabled( false );↵ | |||
4 | ↵ | |||
5 | POP3CommandReference r = new POP3CommandReference(c↵ | 1 | String option = commandLine.getOptionValue("compose");↵ | |
2 | ComposerModel model = new ComposerModel(MessageOptionParser↵ | |||
3 | .parse(option));↵ | |||
6 | ontroller);↵ | 4 | ComposerController controller = new ComposerController();↵ | |
7 | FetchNewMessagesCommand c = new FetchNewMessagesCommand(this, r);↵ | |||
8 | CommandProcessor.getInstance().addOp(c↵ | |||
5 | new DefaultContainer(controller);↵ | |||
6 | controller.setComposerModel(model);↵ | |||
9 | ); | 7 | ColumbaCmdLineParser.getInstance().setRestoreLastSession(false); | |
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 |
Number of node comparisons | 30 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 5 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | POP3Server controller = POP3ServerCollection.getInstance().uidGet(accountUid); | | |||||||||||||||||||||||
| 13 | String option = commandLine.getOptionValue("compose"); | |||||||||||||||||||||||
|
| 14 | ComposerModel model = new ComposerModel(MessageOptionParser.parse(option)); | ||||||||||||||||||||||
|
| 15 | ComposerController controller = new ComposerController(); | ||||||||||||||||||||||
| 16 | new DefaultContainer(controller); | |||||||||||||||||||||||
|
| 17 | controller.setComposerModel(model); | ||||||||||||||||||||||
2 | setEnabled(false); |
| 18 | ColumbaCmdLineParser.getInstance().setRestoreLastSession(false); | |||||||||||||||||||||
3 | POP3CommandReference r = new POP3CommandReference(controller); |
| | ||||||||||||||||||||||
4 | FetchNewMessagesCommand c = new FetchNewMessagesCommand(this, r); |
| | ||||||||||||||||||||||
5 | CommandProcessor.getInstance().addOp(c); | |
Row | Violation |
---|---|
1 | Unmatched statement ComposerModel model=new ComposerModel(MessageOptionParser.parse(option)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched statement ComposerController controller=new ComposerController(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Unmatched statement controller.setComposerModel(model); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Expression setEnabled(false) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression ColumbaCmdLineParser.getInstance().setRestoreLastSession(false) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression setEnabled(false) is a void method call, and thus it cannot be parameterized |
7 | Expression ColumbaCmdLineParser.getInstance().setRestoreLastSession(false) is a void method call, and thus it cannot be parameterized |
8 | Expression setEnabled(false) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression ColumbaCmdLineParser.getInstance().setRestoreLastSession(false) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression setEnabled(false) is a void method call, and thus it cannot be parameterized |
11 | Expression ColumbaCmdLineParser.getInstance().setRestoreLastSession(false) is a void method call, and thus it cannot be parameterized |
12 | Unmatched statement POP3CommandReference r=new POP3CommandReference(controller); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
13 | Unmatched statement FetchNewMessagesCommand c=new FetchNewMessagesCommand(this,r); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
14 | The refactoring of the clones is infeasible, because classes org.columba.mail.mailchecking.POP3MailCheckingAction and org.columba.mail.main.MailMain do not have a common superclass |