public static Object getNamedInstance(String name) {
log.debug("lookup: name=" + name);
Object result = NAMED_INSTANCES.get(name);
if (result==null) {
log.debug("Not found: " + name);
log.debug( NAMED_INSTANCES.toString() );
}
return result;
public static Object getInstance(String uid) {
log.debug("lookup: uid=" + uid);
Object result = INSTANCES.get(uid);
if (result==null) {
log.debug("Not found: " + uid);
log.debug( INSTANCES.toString() );
}
return result;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/impl/SessionFactoryObjectFactory.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/impl/SessionFactoryObjectFactory.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public static Object getNamedInstance(String name) {↵ | | 1 | public static Object getInstance(String uid) {↵
|
2 | log.debug("lookup: name=" + name);↵ | | 2 | log.debug("lookup: uid=" + uid);↵
|
3 | Object result = NAMED_INSTANCES.get(name);↵ | | 3 | Object result = INSTANCES.get(uid);↵
|
4 | if (result==null) {↵ | | 4 | if (result==null) {↵
|
5 | log.debug("Not found: " + name);↵ | | 5 | log.debug("Not found: " + uid);↵
|
6 | log.debug( NAMED_INSTANCES.toString() );↵ | | 6 | log.debug( INSTANCES.toString() );↵
|
7 | }↵ | | 7 | }↵
|
8 | return result;↵ | | 8 | return result;↵
|
9 | | | 9 |
|
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.0 |
Clones location | |
Number of node comparisons | 0 |