File path: /jruby-1.4.0/src/org/jruby/platform/Platform.java | File path: /jruby-1.4.0/src/org/jruby/platform/Platform.java | |||
Method name: String initArchitecture()
|
Method name: String initOperatingSystem()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | for (String s : ARCH_NAMES.keySet()) {↵ | 1 | for (String s : OS_NAMES.keySet()) {↵ | |
2 | if (s.equalsIgnoreCase(arch)) {↵ | 2 | if (s.equalsIgnoreCase(osname)) {↵ | |
3 | return ARCH_NAMES.get(s);↵ | 3 | return OS_NAMES.get(s);↵ | |
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.2 |
Clones location | Clones are declared in the same class |
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) | 1.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | for (String s : ARCH_NAMES.keySet()) |
| 2 | for (String s : OS_NAMES.keySet()) | ||||||||||
3 | if (s.equalsIgnoreCase(arch)) |
| 3 | if (s.equalsIgnoreCase(osname)) | ||||||||||
4 | return ARCH_NAMES.get(s); |
| 4 | return OS_NAMES.get(s); |
Row | Violation |
---|