model = new SamplingStatCalculator("Graph"); graph = new Graph(model); init();
headerManager = new HeaderManager(); tableModel = new InnerTableModel(headerManager); init();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/GraphVisualizer.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/gui/HeaderPanel.java
Method name: void GraphVisualizer() Method name: void HeaderPanel()
Number of AST nodes: 3 Number of AST nodes: 3
1
model = new SamplingStatCalculator("Graph");
2
		graph = new Graph(model
1
headerManager = new HeaderManager();
3
);
2
		tableModel = new InnerTableModel(headerManager);
4
		init();
3
		init();
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 having the same super class
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 2
    Mapped Statements
    ID Statement ID Statement
                                                                              
    1
    headerManager = new HeaderManager();
    Preondition Violations
    Unmatched statement headerManager=new HeaderManager(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    1
    headerManager = new HeaderManager();
    1
    model = new SamplingStatCalculator("Graph");
    1
    model = new SamplingStatCalculator("Graph");
    Preondition Violations
    Unmatched statement model=new SamplingStatCalculator("Graph"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                              
                                                                                                      
    2
    tableModel = new InnerTableModel(headerManager);
    Preondition Violations
    Unmatched statement tableModel=new InnerTableModel(headerManager); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    tableModel = new InnerTableModel(headerManager);
    2
    graph = new Graph(model);
    2
    graph = new Graph(model);
    Preondition Violations
    Unmatched statement graph=new Graph(model); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                        
    3
    init();
    3
    init();
    Precondition Violations (4)
    Row Violation
    1Unmatched statement headerManager=new HeaderManager(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement model=new SamplingStatCalculator("Graph"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3Unmatched statement tableModel=new InnerTableModel(headerManager); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched statement graph=new Graph(model); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted