SAXBuilder bldr = new SAXBuilder(); Document doc; doc = bldr.build(compref); Element root = doc.getRootElement(); Element body = root.getChild("body"); List sections = body.getChildren("section");
SAXBuilder bldr = new SAXBuilder(); Document doc; doc = bldr.build(compref); Element root = doc.getRootElement(); Element body = root.getChild("body"); List sections = body.getChildren("section");
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/junit/JMeterTest.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/junit/JMeterTest.java
Method name: void createTitleSet() Method name: void createTagSet()
Number of AST nodes: 6 Number of AST nodes: 6
1
SAXBuilder bldr = new SAXBuilder();
1
SAXBuilder bldr = new SAXBuilder();
2
		Document doc;
2
		Document doc;
3
		doc = bldr.build(compref);
3
		doc = bldr.build(compref);
4
		Element root = doc.getRootElement();
4
		Element root = doc.getRootElement();
5
		Element body = root.getChild("body");
5
		Element body = root.getChild("body");
6
		List sections = body.getChildren("section");
6
		List sections = body.getChildren("section");
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 declared in the same class
Number of node comparisons27
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    3
    SAXBuilder bldr = new SAXBuilder();
    3
    SAXBuilder bldr = new SAXBuilder();
    4
    Document doc;
    4
    Document doc;
    5
    doc = bldr.build(compref);
    5
    doc = bldr.build(compref);
    6
    Element root = doc.getRootElement();
    6
    Element root = doc.getRootElement();
    7
    Element body = root.getChild("body");
    7
    Element body = root.getChild("body");
    8
    List sections = body.getChildren("section");
    8
    List sections = body.getChildren("section");
    Precondition Violations (0)
    Row Violation