public static ClassGenerator getClassGenerator() throws UtilEvalError { if ( cg == null ) { try { Class clas = Class.forName( "bsh.ClassGeneratorImpl" ); cg = (ClassGenerator)clas.newInstance(); } catch ( Exception e ) { throw new Unavailable("ClassGenerator unavailable: "+e); } } return cg;
public static ReflectManager getReflectManager() throws Unavailable { if ( rfm == null ) { Class clas; try { clas = Class.forName( "bsh.reflect.ReflectManagerImpl" ); rfm = (ReflectManager)clas.newInstance(); } catch ( Exception e ) { throw new Unavailable("Reflect Manager unavailable: "+e); } } return rfm;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/ClassGenerator.java File path: /jEdit-4.2/src/bsh/ReflectManager.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static ClassGenerator getClassGenerator() 
1
public static ReflectManager getReflectManager() 
2
		throws UtilEvalError
2
		throws Unavailable
3
	{
3
	{
4
		if ( cg == null ) 
4
		if ( rfm == null ) 
5
		{
5
		{
6
			
6
			Class clas;
7
try {
7
			try {
8
				Class clas = Class.forName( "bsh.ClassGeneratorImpl" );
8
				clas = Class.forName( "bsh.reflect.ReflectManagerImpl" );
9
				cg = (ClassGenerator)clas.newInstance();
9
				rfm = (ReflectManager)clas.newInstance();
10
			} catch ( Exception e ) {
10
			} catch ( Exception e ) {
11
				throw new Unavailable("ClassGenerator unavailable: "+e);
11
				throw new Unavailable("Reflect Manager unavailable: "+e);
12
			}
12
			}
13
		}
13
		}
14
	
14
	
15
		return cg;
15
		return rfm;
16
	
16
	
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0