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: 9 | Number of AST nodes: 9 | |||
1 | String unseen = property.getAttribute("unseen");↵ | 1 | String exists = property.getAttribute("exists");↵ | |
2 | if (unseen != null) {↵ | 2 | if (exists != null) {↵ | |
3 | info.setUnseen(Integer.parseInt(unseen));↵ | 3 | info.setExists(Integer.parseInt(exists));↵ | |
4 | }↵ | 4 | }↵ | |
5 | String uidnext = property.getAttribute("uidnext");↵ | 5 | String recent = property.getAttribute("recent");↵ | |
6 | if (uidnext != null) {↵ | 6 | if (recent != null) {↵ | |
7 | info.setUidNext(Integer.parseInt(uidnext));↵ | 7 | info.setRecent(Integer.parseInt(recent));↵ | |
8 | }↵ | 8 | }↵ | |
9 | String uidvalidity = property.getAttribute("uidvalidty");↵ | 9 | String unseen = property.getAttribute("unseen");↵ | |
10 | if (uidvalidity != null) {↵ | 10 | if (unseen != null) {↵ | |
11 | info.setUidValidity(Integer.parseInt(uidvalidity));↵ | 11 | info.setUnseen(Integer.parseInt(unseen));↵ | |
12 | } | 12 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 36 |
Number of mapped statements | 9 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11 | String unseen = property.getAttribute("unseen"); | 11 | String unseen = property.getAttribute("unseen"); | ||||||||||||||||||
12 | if (unseen != null) | 12 | if (unseen != null) | ||||||||||||||||||
13 | info.setUnseen(Integer.parseInt(unseen)); | 13 | info.setUnseen(Integer.parseInt(unseen)); | ||||||||||||||||||
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"); |
| 5 | String exists = property.getAttribute("exists"); | |||||||||||||||||
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 |