File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/bytecode/javassist/FieldTransformer.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/bytecode/javassist/FieldTransformer.java | |||
Method name: void addTypeDependDataLoad(Bytecode, String, int)
|
Method name: void addTypeDependDataStore(Bytecode, String, int)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (typeName.equals("D")) {↵ | 1 | if (typeName.equals("D")) {↵ | |
2 | // double↵ | 2 | // double↵ | |
3 | code.addDload(i);↵ | 3 | code.addDstore(i);↵ | |
4 | } else if (typeName.equals("F")) {↵ | 4 | } else if (typeName.equals("F")) {↵ | |
5 | // float↵ | 5 | // float↵ | |
6 | code.addFload(i);↵ | 6 | code.addFstore(i);↵ | |
7 | } else if (typeName.equals("J")) {↵ | 7 | } else if (typeName.equals("J")) {↵ | |
8 | // long↵ | 8 | // long↵ | |
9 | code.addLload(i);↵ | 9 | code.addLstore(i);↵ | |
10 | } else {↵ | 10 | } else {↵ | |
11 | // bad type↵ | 11 | // bad type↵ | |
12 | throw new RuntimeException("bad type: " + typeName);↵ | 12 | throw new RuntimeException("bad type: " + typeName);↵ | |
13 | } | 13 |
| |
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.6 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 36 |
Number of mapped statements | 7 |
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) | 2.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | else if (typeName.equals("D")) | 5 | else if (typeName.equals("D")) | |||||||||||||
6 | code.addDload(i); |
| 6 | code.addDstore(i); | ||||||||||||
7 | else if (typeName.equals("F")) | 7 | else if (typeName.equals("F")) | |||||||||||||
8 | code.addFload(i); |
| 8 | code.addFstore(i); | ||||||||||||
9 | else if (typeName.equals("J")) | 9 | else if (typeName.equals("J")) | |||||||||||||
10 | code.addLload(i); |
| 10 | code.addLstore(i); | ||||||||||||
else | else | |||||||||||||||
11 | throw new RuntimeException("bad type: " + typeName); | 11 | throw new RuntimeException("bad type: " + typeName); |
Row | Violation |
---|---|
1 | Expression code.addDload(i) is a void method call, and thus it cannot be parameterized |
2 | Expression code.addDstore(i) is a void method call, and thus it cannot be parameterized |
3 | Expression code.addFload(i) is a void method call, and thus it cannot be parameterized |
4 | Expression code.addFstore(i) is a void method call, and thus it cannot be parameterized |
5 | Expression code.addLload(i) is a void method call, and thus it cannot be parameterized |
6 | Expression code.addLstore(i) is a void method call, and thus it cannot be parameterized |