case DatatypeConstants.EQUAL: { return EQUALS; } case DatatypeConstants.LESSER: { return LESS_THAN; } case DatatypeConstants.GREATER: { return GREATER_THAN; } default: { return INDETERMINATE;
case DatatypeConstants.EQUAL: { return EQUALS; } case DatatypeConstants.LESSER: { return LESS_THAN; } case DatatypeConstants.GREATER: { return GREATER_THAN; } default: { return INDETERMINATE;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/util/XMLTypeUtil.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/util/XMLTypeUtil.java
Method name: int compareCalendar(Object, Object) Method name: int compareDuration(Object, Object)
Number of AST nodes: 8 Number of AST nodes: 8
1
case DatatypeConstants.EQUAL:
1
case DatatypeConstants.EQUAL:
2
      {
2
      {
3
        return EQUALS;
3
        return EQUALS;
4
      }
4
      }
5
      case DatatypeConstants.LESSER:
5
      case DatatypeConstants.LESSER:
6
      {
6
      {
7
        return LESS_THAN;
7
        return LESS_THAN;
8
      }
8
      }
9
      case DatatypeConstants.GREATER:
9
      case DatatypeConstants.GREATER:
10
      {
10
      {
11
        return GREATER_THAN;
11
        return GREATER_THAN;
12
      }
12
      }
13
      default:
13
      default:
14
      {
14
      {
15
        return INDETERMINATE;
15
        return INDETERMINATE;
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.0
Clones locationClones are declared in the same class
Number of node comparisons40
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements8
    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 1
    Mapped Statements
    ID Statement ID Statement
    2
    case DatatypeConstants.EQUAL:
    2
    case DatatypeConstants.EQUAL:
    3
    return EQUALS;
    3
    return EQUALS;
    4
    case DatatypeConstants.LESSER:
    4
    case DatatypeConstants.LESSER:
    5
    return LESS_THAN;
    5
    return LESS_THAN;
    6
    case DatatypeConstants.GREATER:
    6
    case DatatypeConstants.GREATER:
    7
    return GREATER_THAN;
    7
    return GREATER_THAN;
    8
    default:
    8
    default:
    9
    return INDETERMINATE;
    9
    return INDETERMINATE;
    Precondition Violations (0)
    Row Violation