while (it2.hasNext()) {
ISearchCriteria c = it2.next();
String searchCriteriaTechnicalName = c
.getTechnicalName();
// execute search
doExecute(ref.getSearchTerm(), p,
searchCriteriaTechnicalName, ref
.isSearchInside(), ref.getStartIndex(),
ref.getResultCount());
}
while (it.hasNext()) {
IContainer m = (IContainer) it.next();
JFrame frame = m.getFrame();
if (frame.isActive())
return m;
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/search/SearchManager.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/frame/FrameManager.java
|
Method name: void execute(IWorkerStatusController)
|
|
Method name: IContainer getActiveFrameMediator()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 5
|
|
1 | while (it2.hasNext()) {↵ | | 1 | while (it.hasNext()) {↵
|
2 | ISearchCriteria c = it2.next();↵ | | 2 | IContainer m = (IContainer) it.next();↵
|
3 | String searchCriteriaTechnicalName = c↵ | | 3 | ↵
|
4 | .getTechnicalName();↵ | | |
|
5 | // execute search↵ | | |
|
6 | doExecute(ref.getSearchTerm(), p,↵ | | |
|
7 | searchCriteriaTechnicalName, ref↵ | | |
|
8 | .isSearchInside(), ref.getStartIndex(),↵ | | |
|
9 | ref.getResultCount());↵ | | |
|
10 | ↵ | | 4 | JFrame frame = m.getFrame();↵
|
| | | 5 | if (frame.isActive())↵
|
| | | 6 | return m;↵
|
11 | } | | 7 | }
|
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |