if (_comboBox != null) {
try {
_comboBox.showPopup();
} catch (Exception ex) {
ex.printStackTrace();
}
}
for (int i = 0; i < 10; i++) {
try {
Thread.sleep(1000);
} catch (InterruptedException ie) {
}
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/autocomplete/AddressAutoCompleter.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/shutdown/ShutdownManager.java
|
Method name: void autoComplete(String, int)
|
|
Method name: void run()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if (_comboBox != null) {↵ | | |
|
2 | try {↵ | | |
|
3 | _comboBox.showPopup();↵ | | |
|
4 | } catch (↵ | | 1 | for (int i = 0; i < 10; i++) {↵
|
| | | 2 | try {↵
|
| | | 3 | Thread.sleep(1000);↵
|
5 | Exception ex) {↵ | | 4 | } catch (InterruptedException ie) {↵
|
6 | ex.printStackTrace();↵ | | |
|
7 | }↵ | | |
|
8 | ↵ | | 5 | }↵
|
9 | } | | 6 | }
|
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 |