String contents = new String(html); htmlParser = new Parser(); htmlParser.setInputHTML(contents);
String results="Unexpected query type: "+_queryType; res.setResponseMessage(results); res.setSuccessful(false);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/parser/HtmlParserHTMLParser.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
Method name: Iterator getEmbeddedResourceURLs(byte[], URL, URLCollection) Method name: SampleResult sample(Entry)
Number of AST nodes: 3 Number of AST nodes: 3
1
String contents = new String(html);
1
String 
2
			htmlParser = new Parser(
2
results="Unexpected query type: "+_queryType;
3
);
3
                res.setResponseMessage(results);
4
            htmlParser.setInputHTML(contents);
4
                res.setSuccessful(false);
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.0
Clones locationClones are in different classes
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    5
    String contents = new String(html);
    5
    String contents = new String(html);
    61
    String results = "Unexpected query type: " + _queryType;
    Differences
    Expression1Expression2Difference
    contentsresultsVARIABLE_NAME_MISMATCH
    new String(html)"Unexpected query type: " + _queryTypeTYPE_COMPATIBLE_REPLACEMENT
    61
    String results = "Unexpected query type: " + _queryType;
                                                                            
    62
    res.setResponseMessage(results);
                                                              
    63
    res.setSuccessful(false);
    Precondition Violations (0)
    Row Violation