File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java | File path: /hibernate-distribution-3.3.2.GA/project/jmx/src/main/java/org/hibernate/jmx/SessionFactoryStub.java | |||
Method name: Object readResolve()
|
Method name: Object readResolve()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (result==null) {↵ | 1 | if (result==null) {↵ | |
2 | // in case we were deserialized in a different JVM, look for an instance with the same name↵ | 2 | // in case we were deserialized in a different JVM, look for an instance with the same name↵ | |
3 | // (alternatively we could do an actual JNDI lookup here....)↵ | 3 | // (alternatively we could do an actual JNDI lookup here....)↵ | |
4 | result = SessionFactoryObjectFactory.getNamedInstance(name);↵ | 4 | result = SessionFactoryObjectFactory.getNamedInstance(name);↵ | |
5 | if (result==null) {↵ | 5 | if (result==null) {↵ | |
6 | throw new InvalidObjectException("Could not find a SessionFactory named: " + name);↵ | 6 | throw new InvalidObjectException("Could not find a stub SessionFactory named: " + name);↵ | |
7 | }↵ | 7 | }↵ | |
8 | else {↵ | 8 | else {↵ | |
9 | log.debug("resolved SessionFactory by name");↵ | 9 | log.debug("resolved stub SessionFactory by name");↵ | |
10 | }↵ | 10 | }↵ | |
11 | }↵ | 11 | }↵ | |
12 | else {↵ | 12 | else {↵ | |
13 | log.debug("resolved SessionFactory by uid");↵ | 13 | log.debug("resolved stub SessionFactory by uid");↵ | |
14 | } | 14 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
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 | 18 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (result == null) | 2 | if (result == null) | |||||||||||
4 | result = SessionFactoryObjectFactory.getNamedInstance(name); | 3 | result = SessionFactoryObjectFactory.getNamedInstance(name); | |||||||||||
5 | if (result == null) | 4 | if (result == null) | |||||||||||
6 | throw new InvalidObjectException("Could not find a SessionFactory named: " + name); |
| 5 | throw new InvalidObjectException("Could not find a stub SessionFactory named: " + name); | ||||||||||
else | else | |||||||||||||
7 | log.debug("resolved SessionFactory by name"); |
| 6 | log.debug("resolved stub SessionFactory by name"); | ||||||||||
else | else | |||||||||||||
8 | log.debug("resolved SessionFactory by uid"); |
| 7 | log.debug("resolved stub SessionFactory by uid"); |
Row | Violation |
---|