if (argument.equals("--")) {
// ruby interpreter compatibilty
// Usage: ruby [switches] [--] [programfile] [arguments])
endOfArguments = true;
break;
}
for (ParameterMarshaller m : marshallers) {
if (m.needsInvocationSession()) {
needsInvocation = true;
break;
}
}
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/RubyInstanceConfig.java
|
|
File path: /jruby-1.4.0/src/org/jruby/ext/ffi/jffi/DefaultMethod.java
|
Method name: void processArgument()
|
|
Method name: void DefaultMethod(RubyModule, Function, FunctionInvoker, ParameterMarshaller[])
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
1 | if (argument.equals("--")) {↵ | | 1 | for (ParameterMarshaller m : marshallers) {↵
|
2 | // ruby interpreter compatibilty↵ | | 2 | ↵
|
3 | // Usage: ruby [switches] [--] [programfile] [arguments])↵ | | |
|
4 | endOfArguments = true;↵ | | |
|
5 | ↵ | | 3 | if (m.needsInvocationSession()) {↵
|
| | | 4 | needsInvocation = true;↵
|
6 | break;↵ | | 5 | break;↵
|
7 | ↵ | | 6 | }↵
|
8 | } | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |