while( c != null ) { Method [] m = c.getDeclaredMethods(); for(int i=0; i<m.length; i++) mv.add( m[i] ); c = c.getSuperclass(); }
if(context != null) { context.actionNames = null; String[] actions = getActionNames(); for(int i = 0; i < actions.length; i++) { context.actionHash.remove(actions[i]);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/Reflect.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/ActionSet.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
while( c != null )
1
if(context != null)
2
			{
2
		{
3
				Method [] m
3
			context.actionNames = null;
4
 = c.getDeclaredMethods();
4
			String[] actions = getActionNames();
5
				for(int i=0; i<m.length; i++)
5
			for(int i = 0; i < actions.length; i++)
6
					mv.add( m[i] );
6
			
7
				c = c.getSuperclass(
7
{
8
);
8
				context.actionHash.remove(actions[i]);
9
			}
9
			
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