Class clas;
try {
clas = Class.forName( "bsh.reflect.ReflectManagerImpl" );
rfm = (ReflectManager)clas.newInstance();
} catch ( Exception e ) {
throw new Unavailable("Reflect Manager unavailable: "+e);
}
Class clas;
try {
clas = Class.forName( "bsh.collection.CollectionManagerImpl" );
manager = (CollectionManager)clas.newInstance();
} catch ( Exception e ) {
Interpreter.debug("unable to load CollectionManagerImpl: "+e);
}
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/ReflectManager.java
|
|
File path: /jEdit-4.2/src/bsh/CollectionManager.java
|
Method name: ReflectManager getReflectManager()
|
|
Method name: CollectionManager getCollectionManager()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | Class clas;↵ | | 1 | Class clas;↵
|
2 | try {↵ | | 2 | try {↵
|
3 | clas = Class.forName( "bsh.reflect.ReflectManagerImpl" );↵ | | 3 | clas = Class.forName( "bsh.collection.CollectionManagerImpl" );↵
|
4 | rfm = (ReflectManager)clas.newInstance();↵ | | 4 | manager = (CollectionManager)clas.newInstance();↵
|
5 | } catch ( Exception e ) {↵ | | 5 | } catch ( Exception e ) {↵
|
6 | throw new Unavailable("Reflect Manager unavailable: "+e);↵ | | 6 | Interpreter.debug("unable to load CollectionManagerImpl: "+e);↵
|
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |