try {
return javaClass.getClasses();
} catch (SecurityException e) {
return new Class<?>[] {};
}
try {
return javaClass.getFields();
} catch (SecurityException e) {
return new Field[] {};
}
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: Class>[] getClasses(Class>)
|
|
Method name: Field[] getFields(Class>)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | try {↵ | | 1 | try {↵
|
2 | return javaClass.getClasses();↵ | | 2 | return javaClass.getFields();↵
|
3 | } catch (SecurityException e) {↵ | | 3 | } catch (SecurityException e) {↵
|
4 | return new Class<?>[] {};↵ | | 4 | return new Field[] {};↵
|
5 | } | | 5 | }
|
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 declared in the same class |
Number of node comparisons | 1 |