File path: /jruby-1.4.0/src/org/jruby/javasupport/JavaClass.java | File path: /jruby-1.4.0/src/org/jruby/javasupport/JavaClass.java | |||
Method name: void setupClassMethods(Class>, Map
|
Method name: void setupClassMethods(Class>, Map
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | for (Map.Entry<String, NamedInstaller> entry : staticCallbacks.entrySet()) {↵ | 1 | for (Map.Entry<String, NamedInstaller> entry : instanceCallbacks.entrySet()) {↵ | |
2 | if (entry.getValue().type == NamedInstaller.STATIC_METHOD && entry.getValue().hasLocalMethod()) {↵ | 2 | if (entry.getValue().type == NamedInstaller.INSTANCE_METHOD && entry.getValue().hasLocalMethod()) {↵ | |
3 | assignAliases((MethodInstaller) entry.getValue(), staticNames);↵ | 3 | assignAliases((MethodInstaller) entry.getValue(), instanceNames);↵ | |
4 | }↵ | 4 | }↵ | |
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.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 8 |
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) | 12.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28 | for (Map.Entry<String, NamedInstaller> entry : staticCallbacks.entrySet()) |
| 31 | for (Map.Entry<String, NamedInstaller> entry : instanceCallbacks.entrySet()) | ||||||||||
29 | if (entry.getValue().type == NamedInstaller.STATIC_METHOD && entry.getValue().hasLocalMethod()) |
| 32 | if (entry.getValue().type == NamedInstaller.INSTANCE_METHOD && entry.getValue().hasLocalMethod()) | ||||||||||
30 | assignAliases((MethodInstaller)entry.getValue(), staticNames); |
| 33 | assignAliases((MethodInstaller)entry.getValue(), instanceNames); |
Row | Violation |
---|