switch (((XMLGregorianCalendar)calendar1).compare((XMLGregorianCalendar)calendar2)) { case DatatypeConstants.EQUAL: { return EQUALS; } case DatatypeConstants.LESSER: { return LESS_THAN; } case DatatypeConstants.GREATER: { return GREATER_THAN; } default: { return INDETERMINATE; } }
switch (((Duration)duration1).compare((Duration)duration2)) { 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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
switch (((XMLGregorianCalendar)calendar1).compare((XMLGregorianCalendar)calendar2))
1
switch (((Duration)duration1).compare((Duration)duration2))
2
    {
2
    {
3
      case DatatypeConstants.EQUAL:
3
      case DatatypeConstants.EQUAL:
4
      {
4
      {
5
        return EQUALS;
5
        return EQUALS;
6
      }
6
      }
7
      case DatatypeConstants.LESSER:
7
      case DatatypeConstants.LESSER:
8
      {
8
      {
9
        return LESS_THAN;
9
        return LESS_THAN;
10
      }
10
      }
11
      case DatatypeConstants.GREATER:
11
      case DatatypeConstants.GREATER:
12
      {
12
      {
13
        return GREATER_THAN;
13
        return GREATER_THAN;
14
      }
14
      }
15
      default:
15
      default:
16
      {
16
      {
17
        return INDETERMINATE;
17
        return INDETERMINATE;
18
      }
18
      }
19
    }
19
    }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0