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: 4 | Number of AST nodes: 4 | |||
1 | if (!annotatedMethods1_8.isEmpty()) {↵ | 1 | if (!annotatedMethods1_9.isEmpty()) {↵ | |
2 | out.println(" if (compatVersion == CompatVersion.RUBY1_8 || compatVersion == CompatVersion.BOTH) {");↵ | 2 | out.println(" if (compatVersion == CompatVersion.RUBY1_9 || compatVersion == CompatVersion.BOTH) {");↵ | |
3 | processMethodDeclarations(annotatedMethods1_8);↵ | 3 | processMethodDeclarations(annotatedMethods1_9);↵ | |
4 | out.println(" }");↵ | 4 | out.println(" }");↵ | |
5 | } | 5 |
| |
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 18 |
Number of mapped statements | 4 |
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.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
78 | if (!annotatedMethods1_8.isEmpty()) |
| 82 | if (!annotatedMethods1_9.isEmpty()) | ||||||||||
79 | out.println(" if (compatVersion == CompatVersion.RUBY1_8 || compatVersion == CompatVersion.BOTH) {"); |
| 83 | out.println(" if (compatVersion == CompatVersion.RUBY1_9 || compatVersion == CompatVersion.BOTH) {"); | ||||||||||
80 | processMethodDeclarations(annotatedMethods1_8); |
| 84 | processMethodDeclarations(annotatedMethods1_9); | ||||||||||
81 | out.println(" }"); | 85 | out.println(" }"); |
Row | Violation |
---|