for (int i = 0; i < classes.length; i++) { if (Modifier.isPublic(classes[i].getModifiers())) { result.append(get(runtime, classes[i])); } }
for (int i = catches.length - 1 ; i >= 0 ; i--) { if (tag.equals(catches[i].getTag())) { //Catch active, throw for catch to handle throw new JumpException.ThrowJump(catches[i], args.length > 1 ? args[1] : runtime.getNil()); } }
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/javasupport/JavaClass.java File path: /jruby-1.4.0/src/org/jruby/RubyKernel.java
Method name: RubyArray declared_classes() Method name: IRubyObject rbThrow(ThreadContext, IRubyObject, IRubyObject[], Block)
Number of AST nodes: 3 Number of AST nodes: 3
1
for (int i = 0; i < classes.length; i++) {
1
for (int i = 
2
                if (Modifier.isPublic(classes[i].getModifiers())) {
3
                    result.append(get(runtime, classes[i]
2
catches.length - 1 ; i >= 0 ; i--) {
3
            if (tag.equals(catches[i].getTag())) {
4
                //Catch active, throw for catch to handle
4
));
5
                throw new JumpException.ThrowJump(catches[i], args.length > 1 ? args[1] : runtime.getNil());
5
                }
6
            
6
    
7
}
7
        }
8
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.3
Clones locationClones are in different classes
Number of node comparisons1