File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/pop3/POP3HeaderBinding.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/pop3/POP3HeaderBinding.java | |||
Method name: void objectToEntry(Object, TupleOutput)
|
Method name: void objectToEntry(Object, TupleOutput)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | if (↵ | 1 | if (columnTypes[j] == Boolean.class) {↵ | |
2 | o == null) {↵ | 2 | if( o == null) {↵ | |
3 | out.writeInt(0);↵ | 3 | out.writeBoolean(false);↵ | |
4 | } else {↵ | 4 | } else {↵ | |
5 | out.writeInt(((Integer) o).intValue());↵ | 5 | out.writeBoolean(((Boolean) o).booleanValue());↵ | |
6 | } | 6 | }↵ | |
7 |
| |||
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 | 11 |
Number of mapped statements | 2 |
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) | 1.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | if (o == null) | 20 | if (o == null) | ||||||||||||||||||||||||||||
9 | out.writeInt(0); | | |||||||||||||||||||||||||||||
| 21 | out.writeBoolean(false); | |||||||||||||||||||||||||||||
else | else | ||||||||||||||||||||||||||||||
10 | out.writeInt(((Integer)o).intValue()); |
| 22 | out.writeBoolean(((Boolean)o).booleanValue()); |
Row | Violation |
---|---|
1 | Expression out.writeInt(((Integer)o).intValue()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression out.writeBoolean(((Boolean)o).booleanValue()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression ((Integer)o).intValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression ((Boolean)o).booleanValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type int of variable ((Integer)o).intValue() does not match with type boolean of variable ((Boolean)o).booleanValue() |
6 | Expression (Integer)o cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression (Boolean)o cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Type java.lang.Integer of variable (Integer)o does not match with type java.lang.Boolean of variable (Boolean)o |