log.info("Type=" + type + " " + ex); if (val && !tol){ throw new SAXException(ex); }
log.warn("Type=" + type + " " + ex); if (val && !tol) { throw new SAXException(ex); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/XPathUtil.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/XPathUtil.java
Method name: void warning(SAXParseException) Method name: void error(SAXParseException)
Number of AST nodes: 3 Number of AST nodes: 3
1
log.info("Type=" + type + " " + ex);
1
log.warn("Type=" + type + " " + ex);
2
			if (val && !tol){
2
			if (val && !tol) {
3
				throw new SAXException(ex);
3
				throw new SAXException(ex);
4
			}
4
			}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are declared in the same class
Number of node comparisons5
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    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
    1
    log.info("Type=" + type + " " + ex);
    1
    log.info("Type=" + type + " " + ex);
    1
    log.warn("Type=" + type + " " + ex);
    Differences
    Expression1Expression2Difference
    infowarnMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression log.info("Type=" + type + " "+ ex) is a void method call, and thus it cannot be parameterized
    Expression log.warn("Type=" + type + " "+ ex) is a void method call, and thus it cannot be parameterized
    1
    log.warn("Type=" + type + " " + ex);
    2
    if (val && !tol)
    2
    if (val && !tol)
    3
    throw new SAXException(ex);
    3
    throw new SAXException(ex);
    Precondition Violations (2)
    Row Violation
    1Expression log.info("Type=" + type + " "+ ex) is a void method call, and thus it cannot be parameterized
    2Expression log.warn("Type=" + type + " "+ ex) is a void method call, and thus it cannot be parameterized