try {
return fastClass.newInstance();
}
catch ( Throwable t ) {
throw new InstantiationException(
"Could not instantiate entity with Javassist optimizer: ",
fastClass.getJavaClass(), t
);
}
try {
return fastClass.newInstance();
}
catch ( Throwable t ) {
throw new InstantiationException(
"Could not instantiate entity with CGLIB optimizer: ",
fastClass.getJavaClass(),
t
);
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/bytecode/javassist/InstantiationOptimizerAdapter.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/bytecode/cglib/InstantiationOptimizerAdapter.java
|
Method name: Object newInstance()
|
|
Method name: Object newInstance()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | try {↵ | | 1 | try {↵
|
2 | return fastClass.newInstance();↵ | | 2 | return fastClass.newInstance();↵
|
3 | }↵ | | 3 | }↵
|
4 | catch ( Throwable t ) {↵ | | 4 | catch ( Throwable t ) {↵
|
5 | throw new InstantiationException(↵ | | 5 | throw new InstantiationException(↵
|
6 | "Could not instantiate entity with Javassist optimizer: ",↵ | | 6 | "Could not instantiate entity with CGLIB optimizer: ",↵
|
7 | fastClass.getJavaClass(),↵ | | 7 | fastClass.getJavaClass(),↵
|
8 | t↵ | | 8 | t↵
|
9 | );↵ | | 9 | );↵
|
10 | } | | 10 | }
|
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 |
Number of node comparisons | 1 |