File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/AbstractMessageFolder.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/AbstractMessageFolder.java | |||
Method name: void loadMessageFolderInfo()
|
Method name: void loadMessageFolderInfo()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | String uidnext = property.getAttribute("uidnext");↵ | 1 | String exists = property.getAttribute("exists");↵ | |
2 | if (uidnext != null) {↵ | 2 | if (exists != null) {↵ | |
3 | info.setUidNext(Integer.parseInt(uidnext));↵ | 3 | info.setExists(Integer.parseInt(exists));↵ | |
4 | }↵ | 4 | }↵ | |
5 | String uidvalidity = property.getAttribute("uidvalidty");↵ | 5 | String recent = property.getAttribute("recent");↵ | |
6 | if (uidvalidity != null) {↵ | 6 | if (recent != null) {↵ | |
7 | info.setUidValidity(Integer.parseInt(uidvalidity));↵ | 7 | info.setRecent(Integer.parseInt(recent));↵ | |
8 | } | 8 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 17 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 4.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | String exists = property.getAttribute("exists"); | |||||||||||||||||||
14 | String uidnext = property.getAttribute("uidnext"); |
| 8 | String recent = property.getAttribute("recent"); | |||||||||||||||||
15 | if (uidnext != null) |
| 9 | if (recent != null) | |||||||||||||||||
16 | info.setUidNext(Integer.parseInt(uidnext)); |
| 10 | info.setRecent(Integer.parseInt(recent)); | |||||||||||||||||
17 | String uidvalidity = property.getAttribute("uidvalidty"); | | |||||||||||||||||||
18 | if (uidvalidity != null) |
| 6 | if (exists != null) | |||||||||||||||||
19 | info.setUidValidity(Integer.parseInt(uidvalidity)); |
| 7 | info.setExists(Integer.parseInt(exists)); |
Row | Violation |
---|---|
1 | Expression info.setUidNext(Integer.parseInt(uidnext)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression info.setRecent(Integer.parseInt(recent)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression info.setUidNext(Integer.parseInt(uidnext)) is a void method call, and thus it cannot be parameterized |
4 | Expression info.setRecent(Integer.parseInt(recent)) is a void method call, and thus it cannot be parameterized |
5 | Expression info.setUidValidity(Integer.parseInt(uidvalidity)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression info.setExists(Integer.parseInt(exists)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression info.setUidValidity(Integer.parseInt(uidvalidity)) is a void method call, and thus it cannot be parameterized |
8 | Expression info.setExists(Integer.parseInt(exists)) is a void method call, and thus it cannot be parameterized |