if (setMethod != null) { if (!setMethod.checkMethod(value,getColumnClass(i))){ status=false; log.warn(caller.getName()+" is attempting to use nonexistent "+setMethod.toString()); } }
if (getMethod != null) { if (!getMethod.checkMethod(value)){ status=false; log.warn(caller.getName()+" is attempting to use nonexistent "+getMethod.toString()); } }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/gui/ObjectTableModel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/gui/ObjectTableModel.java
Method name: boolean checkFunctors(Object, Class) Method name: boolean checkFunctors(Object, Class)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (setMethod != null) {
1
if (getMethod != null) {
2
				if (!setMethod.checkMethod(value,getColumnClass(i))){
2
				if (!getMethod.checkMethod(value)){
3
					status=false;
3
					status=false;
4
					log.warn(caller.getName()+" is attempting to use nonexistent "+setMethod.toString());
4
					log.warn(caller.getName()+" is attempting to use nonexistent "+getMethod.toString());
5
				}
5
				}
6
			}
6
			}
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.3
Clones locationClones are in the same method
Number of node comparisons11
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    9
    if (setMethod != null)
    9
    if (setMethod != null)
    14
    if (getMethod != null)
    Differences
    Expression1Expression2Difference
    setMethodgetMethodVARIABLE_NAME_MISMATCH
    14
    if (getMethod != null)
    10
    if (!setMethod.checkMethod(value, getColumnClass(i)))
    10
    if (!setMethod.checkMethod(value, getColumnClass(i)))
    15
    if (!getMethod.checkMethod(value))
    Differences
    Expression1Expression2Difference
    setMethodgetMethodVARIABLE_NAME_MISMATCH
    setMethod.checkMethod(value,getColumnClass(i))getMethod.checkMethod(value)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression setMethod.checkMethod(value,getColumnClass(i)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression getMethod.checkMethod(value) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    15
    if (!getMethod.checkMethod(value))
    11
    status = false;
    16
    status = false;
    12
    log.warn(caller.getName() + " is attempting to use nonexistent " + setMethod.toString());
    12
    log.warn(caller.getName() + " is attempting to use nonexistent " + setMethod.toString());
    17
    log.warn(caller.getName() + " is attempting to use nonexistent " + getMethod.toString());
    Differences
    Expression1Expression2Difference
    setMethodgetMethodVARIABLE_NAME_MISMATCH
    17
    log.warn(caller.getName() + " is attempting to use nonexistent " + getMethod.toString());
    Precondition Violations (2)
    Row Violation
    1Expression setMethod.checkMethod(value,getColumnClass(i)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression getMethod.checkMethod(value) cannot be parameterized, because it has dependencies to/from statements that will be extracted