setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP)); setBorder(makeBorder()); add(makeTitlePanel()); style = new JCheckBox(JMeterUtils.getResString("ignore_subcontrollers")); // $NON-NLS-1$ add(style);
setLayout(new BorderLayout(0, 5)); setBorder(makeBorder()); add(makeTitlePanel(), BorderLayout.NORTH); javaPanel = new JavaConfigGui(false); add(javaPanel, BorderLayout.CENTER);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/InterleaveControlGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/control/gui/JavaTestSamplerGui.java
Method name: void init() Method name: void init()
Number of AST nodes: 5 Number of AST nodes: 5
1
setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP));
1
setLayout(new BorderLayout(0, 5));
2
		setBorder(makeBorder());
2
		setBorder(makeBorder());
3
		add(makeTitlePanel());
3
		add(makeTitlePanel()
4
		style = new JCheckBox(JMeterUtils.getResString("ignore_subcontrollers")); // $NON-NLS-1$
5
		add(style
4
, BorderLayout.NORTH);
5
		javaPanel = new JavaConfigGui(false);
6
);
6
		add(javaPanel, BorderLayout.CENTER);
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons25
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment3
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                                                                            
    1
    setLayout(new BorderLayout(0, 5));
    1
    setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP));
    1
    setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP));
    3
    add(makeTitlePanel(), BorderLayout.NORTH);
    Differences
    Expression1Expression2Difference
    setLayoutaddMETHOD_INVOCATION_NAME_MISMATCH
    setLayout(new VerticalLayout(5,VerticalLayout.BOTH,VerticalLayout.TOP))add(makeTitlePanel(),BorderLayout.NORTH)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression setLayout(new VerticalLayout(5,VerticalLayout.BOTH,VerticalLayout.TOP)) is a void method call, and thus it cannot be parameterized
    Expression add(makeTitlePanel(),BorderLayout.NORTH) is a void method call, and thus it cannot be parameterized
    Expression setLayout(new VerticalLayout(5,VerticalLayout.BOTH,VerticalLayout.TOP)) is a void method call, and thus it cannot be parameterized
    Expression add(makeTitlePanel(),BorderLayout.NORTH) is a void method call, and thus it cannot be parameterized
    3
    add(makeTitlePanel(), BorderLayout.NORTH);
    2
    setBorder(makeBorder());
    2
    setBorder(makeBorder());
    3
    add(makeTitlePanel());
                                                      
                                                                                
    4
    javaPanel = new JavaConfigGui(false);
    4
    style = new JCheckBox(JMeterUtils.getResString("ignore_subcontrollers"));
                                                                                                                                                        
                                                                                
    5
    add(javaPanel, BorderLayout.CENTER);
    5
    add(style);
                                
    Precondition Violations (4)
    Row Violation
    1Expression setLayout(new VerticalLayout(5,VerticalLayout.BOTH,VerticalLayout.TOP)) is a void method call, and thus it cannot be parameterized
    2Expression add(makeTitlePanel(),BorderLayout.NORTH) is a void method call, and thus it cannot be parameterized
    3Expression setLayout(new VerticalLayout(5,VerticalLayout.BOTH,VerticalLayout.TOP)) is a void method call, and thus it cannot be parameterized
    4Expression add(makeTitlePanel(),BorderLayout.NORTH) is a void method call, and thus it cannot be parameterized