try { return javaClass.getConstructors(); } catch (SecurityException e) { return new Constructor[] {}; }
try { return javaClass.getClasses(); } catch (SecurityException e) { return new Class<?>[] {}; }
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/javasupport/JavaClass.java
Method name: Constructor[] getConstructors(Class) Method name: Class[] getClasses(Class)
Number of AST nodes: 2 Number of AST nodes: 2
1
try {
1
try {
2
            return javaClass.getConstructors();
2
            return javaClass.getClasses();
3
        } catch (SecurityException e) {
3
        } catch (SecurityException e) {
4
            return new Constructor[] {};
4
            return new Class<?>[] {};
5
        }
5
        }
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.2
Clones locationClones are declared in the same class
Number of node comparisons1