try {
return file.length();
} catch (SecurityException ex) {
return 0L;
}
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/RubyFileStat.java
|
|
File path: /jruby-1.4.0/src/org/jruby/javasupport/JavaClass.java
|
Method name: long sizeInternal()
|
|
Method name: Class>[] getClasses(Class>)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | try {↵ | | 1 | try {↵
|
2 | return file.length();↵ | | 2 | return ↵
|
3 | ↵ | | 3 | javaClass.getClasses();↵
|
4 | } catch (SecurityException ex) {↵ | | 4 | } catch (SecurityException e) {↵
|
5 | return 0L;↵ | | 5 | return ↵
|
6 | ↵ | | 6 | new Class<?>[] {};↵
|
7 | } | | 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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 1 |