if (theme != null) {
PlasticTheme t = getTheme(theme);
if (t != null) {
list.setSelectedValue(t, true);
}
}
AbstractMailCheckingAction action = get(uid);
// restart timer
if (action != null) {
action.restartTimer();
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/themes/plugin/PlasticLookAndFeelConfigPlugin.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/mailchecking/MailCheckingManager.java
|
Method name: void updateComponents(boolean)
|
|
Method name: void restartTimer(int)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 3
|
|
1 | if (theme != null) {↵ | | |
|
2 | PlasticTheme t = getTheme(theme);↵ | | |
|
|
3 | ↵ | | 1 | AbstractMailCheckingAction action = get(uid);↵
|
|
| | | 2 | // restart timer↵
|
4 | if (t != null) {↵ | | 3 | if (action != null) {↵
|
5 | list.setSelectedValue(t, true);↵ | | 4 | ↵
|
6 | }↵ | | |
|
7 | ↵ | | 5 | action.restartTimer();↵
|
8 | } | | 6 | }
|
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 5 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.5 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
| | | 1 | AbstractMailCheckingAction action = get(uid); |
4 | PlasticTheme t = getTheme(theme); | | | |
5 | if (t != null) | | 2 | if (action != null) |
| | | 3 | |
6 | list.setSelectedValue(t, true); | | | |
Precondition Violations (1)
Row |
Violation |
1 | Type com.jgoodies.looks.plastic.PlasticTheme of variable t does not match with type org.columba.mail.mailchecking.AbstractMailCheckingAction of variable action |