selBean.setName(name); selBean.setWidth(width); selBean.setHeight(height); selBean.setLandscape(isLandscape); _dlg.lstFormats.repaint();
this.setName(name); this.setWidth(width); this.setHeight(height); this.setSelected(selected); this.setLandscape(landscape);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/FormatController.java File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/xmlbeans/FormatXmlBean.java
Method name: void onSave() Method name: void FormatXmlBean(String, double, double, boolean, boolean)
Number of AST nodes: 5 Number of AST nodes: 5
1
selBean.setName(name);
1
this.setName(name);
2
         selBean.setWidth(width);
2
      this.setWidth(width);
3
         selBean.setHeight(height);
3
      this.setHeight(height);
4
         selBean.setLandscape(isLandscape);
4
      
5
         _dlg.lstFormats.repaint(
5
this.setSelected(selected);
6
);
6
      this.setLandscape(landscape);
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
Number of node comparisons25
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    25
    selBean.setName(name);
    25
    selBean.setName(name);
    1
    this.setName(name);
    Differences
    Expression1Expression2Difference
    selBeanthisTYPE_COMPATIBLE_REPLACEMENT
    1
    this.setName(name);
    26
    selBean.setWidth(width);
    26
    selBean.setWidth(width);
    2
    this.setWidth(width);
    Differences
    Expression1Expression2Difference
    selBeanthisTYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression selBean cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2
    this.setWidth(width);
    27
    selBean.setHeight(height);
    27
    selBean.setHeight(height);
    3
    this.setHeight(height);
    Differences
    Expression1Expression2Difference
    selBeanthisTYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression selBean cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    this.setHeight(height);
                                                                
    4
    this.setSelected(selected);
    Preondition Violations
    Unmatched statement this.setSelected(selected); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4
    this.setSelected(selected);
    28
    selBean.setLandscape(isLandscape);
    28
    selBean.setLandscape(isLandscape);
    5
    this.setLandscape(landscape);
    Differences
    Expression1Expression2Difference
    isLandscapelandscapeVARIABLE_NAME_MISMATCH
    selBeanthisTYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression selBean cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5
    this.setLandscape(landscape);
    29
    _dlg.lstFormats.repaint();
                                                                
    Precondition Violations (4)
    Row Violation
    1Expression selBean cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression selBean cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Unmatched statement this.setSelected(selected); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Expression selBean cannot be parameterized, because it has dependencies to/from statements that will be extracted