if(null == _beg) { return _fpBeg.getZoomedPoint(); } else { return _beg; }
if(null == _end) { return _fpEnd.getZoomedPoint(); } else { return _end; }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/GraphLine.java File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/GraphLine.java
Method name: Point getBegin() Method name: Point getEnd()
Number of AST nodes: 3 Number of AST nodes: 3
1
if(null == _beg)
1
if(null == _end)
2
      {
2
      {
3
         return _fpBeg.getZoomedPoint();
3
         return _fpEnd.getZoomedPoint();
4
      }
4
      }
5
      else
5
      else
6
      {
6
      {
7
         return _beg;
7
         return _end;
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 == _beg)
    1
    if (null == _beg)
    1
    if (null == _end)
    Differences
    Expression1Expression2Difference
    _beg_endVARIABLE_NAME_MISMATCH
    1
    if (null == _end)
    2
    return _fpBeg.getZoomedPoint();
    2
    return _fpBeg.getZoomedPoint();
    2
    return _fpEnd.getZoomedPoint();
    Differences
    Expression1Expression2Difference
    _fpBeg_fpEndVARIABLE_NAME_MISMATCH
    2
    return _fpEnd.getZoomedPoint();
    else
    else
    3
    return _beg;
    3
    return _beg;
    3
    return _end;
    Differences
    Expression1Expression2Difference
    _beg_endVARIABLE_NAME_MISMATCH
    3
    return _end;
    Precondition Violations (0)
    Row Violation