File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/native2ascii/Native2AsciiAdapterFactory.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/javah/JavahAdapterFactory.java | |||
Method name: String getDefault()
|
Method name: String getDefault()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (JavaEnvUtils.isKaffe()) {↵ | 1 | if (JavaEnvUtils.isKaffe()) {↵ | |
2 | return KaffeNative2Ascii.IMPLEMENTATION_NAME;↵ | 2 | return Kaffeh.IMPLEMENTATION_NAME;↵ | |
3 | }↵ | 3 | }↵ | |
4 | return SunNative2Ascii.IMPLEMENTATION_NAME; | 4 | return SunJavah.IMPLEMENTATION_NAME; | |
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 5 |
Number of mapped statements | 3 |
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) | 0.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (JavaEnvUtils.isKaffe()) | 1 | if (JavaEnvUtils.isKaffe()) | ||||||||||||
2 | return KaffeNative2Ascii.IMPLEMENTATION_NAME; |
| 2 | return Kaffeh.IMPLEMENTATION_NAME; | |||||||||||
3 | return SunNative2Ascii.IMPLEMENTATION_NAME; |
| 3 | return SunJavah.IMPLEMENTATION_NAME; |
Row | Violation |
---|---|
1 | Type org.apache.tools.ant.taskdefs.optional.native2ascii.KaffeNative2Ascii of variable KaffeNative2Ascii does not match with type org.apache.tools.ant.taskdefs.optional.javah.Kaffeh of variable Kaffeh |
2 | Type org.apache.tools.ant.taskdefs.optional.native2ascii.SunNative2Ascii of variable SunNative2Ascii does not match with type org.apache.tools.ant.taskdefs.optional.javah.SunJavah of variable SunJavah |