if(null == _pc) { return _graphPixelSize.width; } else { return _pc.getPixelWidth(); }
if(null == _pc) { return _graphPixelSize.height; } else { return _pc.getPixelHeight(); }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/graphtofiles/SaveToFilePageFormat.java File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/graphtofiles/SaveToFilePageFormat.java
Method name: double getImageableWidth() Method name: double getImageableHeight()
Number of AST nodes: 3 Number of AST nodes: 3
1
if(null == _pc)
1
if(null == _pc)
2
      {
2
      {
3
         return _graphPixelSize.width;
3
         return _graphPixelSize.height;
4
      }
4
      }
5
      else
5
      else
6
      {
6
      {
7
         return _pc.getPixelWidth();
7
         return _pc.getPixelHeight();
8
      }
8
      }
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.1
Clones locationClones are declared in the same class
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)2.3
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (null == _pc)
    1
    if (null == _pc)
    2
    return _graphPixelSize.width;
    2
    return _graphPixelSize.width;
    2
    return _graphPixelSize.height;
    Differences
    Expression1Expression2Difference
    widthheightVARIABLE_NAME_MISMATCH
    2
    return _graphPixelSize.height;
    else
    else
    3
    return _pc.getPixelWidth();
    3
    return _pc.getPixelWidth();
    3
    return _pc.getPixelHeight();
    Differences
    Expression1Expression2Difference
    getPixelWidthgetPixelHeightMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression _pc.getPixelWidth() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _pc.getPixelHeight() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    return _pc.getPixelHeight();
    Precondition Violations (2)
    Row Violation
    1Expression _pc.getPixelWidth() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression _pc.getPixelHeight() cannot be parameterized, because it has dependencies to/from statements that will be extracted