if (operator == FilterCriteria.CONTAINS) {
return new SearchKey(SearchKey.FROM, criteria
.getPatternString());
} else {
// contains not
return new SearchKey(SearchKey.NOT, new SearchKey(
SearchKey.FROM, criteria.getPatternString()));
}
if (operator == FilterCriteria.SIZE_SMALLER) {
return new SearchKey(SearchKey.SMALLER, criteria
.getPatternString());
} else {
// contains not
return new SearchKey(SearchKey.NOT, new SearchKey(
SearchKey.SMALLER, criteria.getPatternString()));
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/imap/IMAPServer.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/imap/IMAPServer.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (operator == FilterCriteria.CONTAINS) {↵ | | 1 | if (operator == FilterCriteria.SIZE_SMALLER) {↵
|
2 | return new SearchKey(SearchKey.FROM, criteria↵ | | 2 | return new SearchKey(SearchKey.SMALLER, criteria↵
|
3 | .getPatternString());↵ | | 3 | .getPatternString());↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | // contains not↵ | | 5 | // contains not↵
|
6 | return new SearchKey(SearchKey.NOT, new SearchKey(↵ | | 6 | return new SearchKey(SearchKey.NOT, new SearchKey(↵
|
7 | SearchKey.FROM, criteria.getPatternString()));↵ | | 7 | SearchKey.SMALLER, criteria.getPatternString()));↵
|
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.0 |
Clones location | |
Number of node comparisons | 0 |