if (RubyInstanceConfig.FASTEST_COMPILE_ENABLED || noFrame()) {
return CallConfiguration.FrameNoneScopeNone;
} else {
return CallConfiguration.FrameBacktraceScopeNone;
}
if (RubyInstanceConfig.FASTEST_COMPILE_ENABLED || noFrame()) {
return CallConfiguration.FrameNoneScopeDummy;
} else {
return CallConfiguration.FrameBacktraceScopeDummy;
}
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/compiler/ASTInspector.java
|
|
File path: /jruby-1.4.0/src/org/jruby/compiler/ASTInspector.java
|
Method name: CallConfiguration getCallConfig()
|
|
Method name: CallConfiguration getCallConfig()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if (RubyInstanceConfig.FASTEST_COMPILE_ENABLED || noFrame()) {↵ | | 1 | if (RubyInstanceConfig.FASTEST_COMPILE_ENABLED || noFrame()) {↵
|
2 | return CallConfiguration.FrameNoneScopeNone;↵ | | 2 | return CallConfiguration.FrameNoneScopeDummy;↵
|
3 | } else {↵ | | 3 | } else {↵
|
4 | return CallConfiguration.FrameBacktraceScopeNone;↵ | | 4 | return CallConfiguration.FrameBacktraceScopeDummy;↵
|
5 | } | | 5 | }
|
See real code fragment |
|
See real code fragment |
Summary
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 9 |
-
{Refactorable}
Mapping Summary
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) | 0.8 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
15 | if (RubyInstanceConfig.FASTEST_COMPILE_ENABLED || noFrame()) | | 12 | if (RubyInstanceConfig.FASTEST_COMPILE_ENABLED || noFrame()) |
16 | return CallConfiguration.FrameNoneScopeNone; | | 13 | return CallConfiguration.FrameNoneScopeDummy; |
| | | | |
17 | return CallConfiguration.FrameBacktraceScopeNone; | | 14 | return CallConfiguration.FrameBacktraceScopeDummy; |
Precondition Violations (0)
Row |
Violation |