this.name = name; this.creturnType = returnType; this.paramNames = paramNames; if ( paramNames != null ) this.numArgs = paramNames.length; this.cparamTypes = paramTypes; this.methodBody = methodBody; this.declaringNameSpace = declaringNameSpace; this.modifiers = modifiers;
super( name, null/*returnType*/, paramNames, null/*paramTypes*/, methodBody, declaringNameSpace, modifiers ); this.returnTypeDescriptor = returnTypeDescriptor; this.returnTypeNode = returnTypeNode; this.paramTypeDescriptors = paramTypeDescriptors; this.paramTypesNode = paramTypesNode; this.callstack = callstack; this.interpreter = interpreter;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/BshMethod.java File path: /jEdit-4.2/src/bsh/DelayedEvalBshMethod.java
Method name: void BshMethod(String, Class, String[], Class[], BSHBlock, NameSpace, Modifiers) Method name: void DelayedEvalBshMethod(String, String, BSHReturnType, String[], String[], BSHFormalParameters, BSHBlock, NameSpace, Modifiers, CallStack, Interpreter)
Number of AST nodes: 9 Number of AST nodes: 7
1
this.name = name;
2
		this.creturnType = returnType;
1
super( name, null/*returnType
3
		this.paramNames = paramNames;
2
*/, paramNames
4
		if ( paramNames != null )
5
			this.numArgs = paramNames.length
3
, null/*paramTypes*/,
4
			methodBody, declaringNameSpace, modifiers );
5
		this.returnTypeDescriptor = returnTypeDescriptor;
6
;
6
		this.returnTypeNode = returnTypeNode;
7
		this.cparamTypes = paramTypes;
7
		this.paramTypeDescriptors = paramType
8
		this.methodB
8
Descriptors;
9
ody = methodBody;
9
		this.paramTypesNode = 
10
		this.declaringNameSp
10
paramTypesNode;
11
ace = declaringNameSpace;
11
		this.callstack = callstack;
12
		this.modifiers = modifiers;
12
		this.interpreter = interpreter;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons36
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment6
    Number of unmapped statements in the second code fragment4
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                                                                                                                                            
    1
    super(name, null, paramNames, null, methodBody, declaringNameSpace, modifiers);
    1
    this.name = name;
    1
    this.name = name;
    2
    this.returnTypeDescriptor = returnTypeDescriptor;
    Differences
    Expression1Expression2Difference
    namereturnTypeDescriptorVARIABLE_NAME_MISMATCH
    namereturnTypeDescriptorVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.name is a field being modified, and thus it cannot be parameterized
    Expression this.returnTypeDescriptor is a field being modified, and thus it cannot be parameterized
    2
    this.returnTypeDescriptor = returnTypeDescriptor;
    2
    this.creturnType = returnType;
                                                                  
                                                                                
    3
    this.returnTypeNode = returnTypeNode;
    3
    this.paramNames = paramNames;
    3
    this.paramNames = paramNames;
    4
    this.paramTypeDescriptors = paramTypeDescriptors;
    Differences
    Expression1Expression2Difference
    paramNamesparamTypeDescriptorsVARIABLE_NAME_MISMATCH
    paramNamesparamTypeDescriptorsVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.paramNames is a field being modified, and thus it cannot be parameterized
    Expression this.paramTypeDescriptors is a field being modified, and thus it cannot be parameterized
    4
    this.paramTypeDescriptors = paramTypeDescriptors;
    4
    if (paramNames != null)
                                                      
    5
    this.numArgs = paramNames.length;
                                                                        
                                                            
    6
    this.callstack = callstack;
    6
    this.cparamTypes = paramTypes;
                                                                  
    7
    this.methodBody = methodBody;
    7
    this.methodBody = methodBody;
    5
    this.paramTypesNode = paramTypesNode;
    Differences
    Expression1Expression2Difference
    methodBodyparamTypesNodeVARIABLE_NAME_MISMATCH
    methodBodyparamTypesNodeVARIABLE_NAME_MISMATCH
    bsh.BSHBlockbsh.BSHFormalParametersSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression this.methodBody is a field being modified, and thus it cannot be parameterized
    Expression this.paramTypesNode is a field being modified, and thus it cannot be parameterized
    5
    this.paramTypesNode = paramTypesNode;
                                                                    
    7
    this.interpreter = interpreter;
    8
    this.declaringNameSpace = declaringNameSpace;
                                                                                                
    9
    this.modifiers = modifiers;
                                                            
    Precondition Violations (6)
    Row Violation
    1Expression this.name is a field being modified, and thus it cannot be parameterized
    2Expression this.returnTypeDescriptor is a field being modified, and thus it cannot be parameterized
    3Expression this.paramNames is a field being modified, and thus it cannot be parameterized
    4Expression this.paramTypeDescriptors is a field being modified, and thus it cannot be parameterized
    5Expression this.methodBody is a field being modified, and thus it cannot be parameterized
    6Expression this.paramTypesNode is a field being modified, and thus it cannot be parameterized