File path: /jruby-1.4.0/src/org/jruby/RubyModule.java | File path: /jruby-1.4.0/src/org/jruby/RubyModule.java | |||
Method name: void clump(Class)
|
Method name: void clump(Class)
|
|||
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.9 |
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.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16 | if (anno.compat() == CompatVersion.RUBY1_8) | 11 | if (anno.compat() == CompatVersion.RUBY1_8) | |||||||||||
17 | methodsHash = annotatedMethods1_8; |
| 12 | methodsHash = staticAnnotatedMethods1_8; | ||||||||||
18 | else if (anno.compat() == CompatVersion.RUBY1_9) | 13 | else if (anno.compat() == CompatVersion.RUBY1_9) | |||||||||||
19 | methodsHash = annotatedMethods1_9; |
| 14 | methodsHash = staticAnnotatedMethods1_9; | ||||||||||
else | else | |||||||||||||
20 | methodsHash = annotatedMethods; |
| 15 | methodsHash = staticAnnotatedMethods; |
Row | Violation |
---|