if (instance == null) {
try {
instance = new Config();
} catch (Exception e) {
e.printStackTrace();
}
}
if (protocol.getState() != IMAPProtocol.NOT_CONNECTED) {
try {
protocol.logout();
} catch (Exception e) {
// don't care
}
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/config/Config.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/imap/IMAPServer.java
|
Method name: IConfig getInstance()
|
|
Method name: void logout()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if (instance == null) {↵ | | 1 | if (↵
|
2 | try {↵ | | |
|
3 | instance = new Config↵ | | 2 | protocol.getState() != IMAPProtocol.NOT_CONNECTED) {↵
|
| | | 3 | try {↵
|
4 | ();↵ | | 4 | protocol.logout();↵
|
5 | } catch (Exception e) {↵ | | 5 | } catch (Exception e) {↵
|
6 | e.printStackTrace();↵ | | 6 | // don't care↵
|
7 | }↵ | | 7 | }↵
|
8 | } | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |