File path: /jruby-1.4.0/src/org/jruby/anno/AnnotationBinder.java | File path: /jruby-1.4.0/src/org/jruby/anno/AnnotationBinder.java | |||
Method name: void visitClassDeclaration(ClassDeclaration)
|
Method name: void visitClassDeclaration(ClassDeclaration)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (anno.compat() == CompatVersion.RUBY1_8) {↵ | 1 | if (anno.compat() == CompatVersion.RUBY1_8) {↵ | |
2 | methodsHash = annotatedMethods1_8;↵ | 2 | methodsHash = staticAnnotatedMethods1_8;↵ | |
3 | } else if (anno.compat() == CompatVersion.RUBY1_9) {↵ | 3 | } else if (anno.compat() == CompatVersion.RUBY1_9) {↵ | |
4 | methodsHash = annotatedMethods1_9;↵ | 4 | methodsHash = staticAnnotatedMethods1_9;↵ | |
5 | } else {↵ | 5 | } else {↵ | |
6 | methodsHash = annotatedMethods;↵ | 6 | methodsHash = staticAnnotatedMethods;↵ | |
7 | } | 7 |
| |
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.8 |
Clones location | Clones are in the same method |
Number of node comparisons | 21 |
Number of mapped statements | 5 |
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.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53 | if (anno.compat() == CompatVersion.RUBY1_8) | 48 | if (anno.compat() == CompatVersion.RUBY1_8) | |||||||||||
54 | methodsHash = annotatedMethods1_8; |
| 49 | methodsHash = staticAnnotatedMethods1_8; | ||||||||||
55 | else if (anno.compat() == CompatVersion.RUBY1_9) | 50 | else if (anno.compat() == CompatVersion.RUBY1_9) | |||||||||||
56 | methodsHash = annotatedMethods1_9; |
| 51 | methodsHash = staticAnnotatedMethods1_9; | ||||||||||
else | else | |||||||||||||
57 | methodsHash = annotatedMethods; |
| 52 | methodsHash = staticAnnotatedMethods; |
Row | Violation |
---|