super(new BorderLayout()); add(subPanel, BorderLayout.NORTH); this.vgap = vgap; this.horizontalAlign = horizontalAlign;
super(new BorderLayout()); add(subPanel, BorderLayout.WEST); this.hgap = hgap; this.verticalAlign = verticalAlign;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/VerticalPanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/HorizontalPanel.java
Method name: void VerticalPanel(int, float) Method name: void HorizontalPanel(int, float)
Number of AST nodes: 4 Number of AST nodes: 4
1
super(new BorderLayout());
1
super(new BorderLayout());
2
		add(subPanel, BorderLayout.NORTH);
2
		add(subPanel, BorderLayout.WEST);
3
		this.vgap = vgap;
3
		this.hgap = hgap;
4
		this.horizontalAlign = horizontalAlign;
4
		this.verticalAlign = verticalAlign;
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 comparisons7
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    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 2
    Mapped Statements
    ID Statement ID Statement
    1
    super(new BorderLayout());
    1
    super(new BorderLayout());
    2
    add(subPanel, BorderLayout.NORTH);
    2
    add(subPanel, BorderLayout.NORTH);
    2
    add(subPanel, BorderLayout.WEST);
    Differences
    Expression1Expression2Difference
    NORTHWESTVARIABLE_NAME_MISMATCH
    2
    add(subPanel, BorderLayout.WEST);
    3
    this.vgap = vgap;
    3
    this.vgap = vgap;
    3
    this.hgap = hgap;
    Differences
    Expression1Expression2Difference
    vgaphgapVARIABLE_NAME_MISMATCH
    vgaphgapVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.vgap is a field being modified, and thus it cannot be parameterized
    Expression this.hgap is a field being modified, and thus it cannot be parameterized
    3
    this.hgap = hgap;
    4
    this.horizontalAlign = horizontalAlign;
    4
    this.horizontalAlign = horizontalAlign;
    4
    this.verticalAlign = verticalAlign;
    Differences
    Expression1Expression2Difference
    horizontalAlignverticalAlignVARIABLE_NAME_MISMATCH
    horizontalAlignverticalAlignVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.horizontalAlign is a field being modified, and thus it cannot be parameterized
    Expression this.verticalAlign is a field being modified, and thus it cannot be parameterized
    4
    this.verticalAlign = verticalAlign;
    Precondition Violations (4)
    Row Violation
    1Expression this.vgap is a field being modified, and thus it cannot be parameterized
    2Expression this.hgap is a field being modified, and thus it cannot be parameterized
    3Expression this.horizontalAlign is a field being modified, and thus it cannot be parameterized
    4Expression this.verticalAlign is a field being modified, and thus it cannot be parameterized