if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); addChangeablePropertyDescriptor(object); addVolatilePropertyDescriptor(object); addTransientPropertyDescriptor(object); addDefaultValueLiteralPropertyDescriptor(object); addDefaultValuePropertyDescriptor(object); addUnsettablePropertyDescriptor(object); addDerivedPropertyDescriptor(object); addEContainingClassPropertyDescriptor(object); } return itemPropertyDescriptors;
if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); addOrderedPropertyDescriptor(object); addUniquePropertyDescriptor(object); addLowerBoundPropertyDescriptor(object); addUpperBoundPropertyDescriptor(object); addManyPropertyDescriptor(object); addRequiredPropertyDescriptor(object); addETypePropertyDescriptor(object); } return itemPropertyDescriptors;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EStructuralFeatureItemProvider.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/ETypedElementItemProvider.java
Method name: List getPropertyDescriptors(Object) Method name: List getPropertyDescriptors(Object)
Number of AST nodes: 11 Number of AST nodes: 10
1
if (itemPropertyDescriptors == null)
1
if (itemPropertyDescriptors == null)
2
    {
2
    {
3
      super.getPropertyDescriptors(object);
3
      super.getPropertyDescriptors(object);
4
      addChangeablePropertyDescriptor(object);
4
      add
5
      addVolatilePropertyDescriptor(object);
5
OrderedPropertyDescriptor(object);
6
      addTransientPropertyDescriptor(object);
6
      addUniquePropertyDescriptor(object);
7
      addDefaultValueLiteralPropertyDescriptor(object);
7
      addLowerBoundPropertyDescriptor(object);
8
      addDefaultValuePropertyDescriptor(object);
8
      addUpperBoundPropertyDescriptor(object);
9
      addUnsettablePropertyDescriptor(object);
9
      addManyPropertyDescriptor(object);
10
      addDerivedPropertyDescriptor(object);
10
      addRequiredPropertyDescriptor(object);
11
      addEContainingClassPropertyDescriptor(object);
11
      addETypePropertyDescriptor(object);
12
    }
12
    }
13
    return itemPropertyDescriptors;
13
    return itemPropertyDescriptors;
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.1
Clones locationClones are in different classes having the same super class
Number of node comparisons91
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements10
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)63.2
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    if (itemPropertyDescriptors == null)
    1
    if (itemPropertyDescriptors == null)
    2
    super.getPropertyDescriptors(object);
    2
    super.getPropertyDescriptors(object);
    3
    addChangeablePropertyDescriptor(object);
    3
    addChangeablePropertyDescriptor(object);
    3
    addOrderedPropertyDescriptor(object);
    Differences
    Expression1Expression2Difference
    addChangeablePropertyDescriptoraddOrderedPropertyDescriptorMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression addChangeablePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addOrderedPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addChangeablePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    Expression addOrderedPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    3
    addOrderedPropertyDescriptor(object);
    4
    addVolatilePropertyDescriptor(object);
    4
    addVolatilePropertyDescriptor(object);
    4
    addUniquePropertyDescriptor(object);
    Differences
    Expression1Expression2Difference
    addVolatilePropertyDescriptoraddUniquePropertyDescriptorMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression addVolatilePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addUniquePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addVolatilePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    Expression addUniquePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    4
    addUniquePropertyDescriptor(object);
    5
    addTransientPropertyDescriptor(object);
    5
    addTransientPropertyDescriptor(object);
    5
    addLowerBoundPropertyDescriptor(object);
    Differences
    Expression1Expression2Difference
    addTransientPropertyDescriptoraddLowerBoundPropertyDescriptorMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression addTransientPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addLowerBoundPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addTransientPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    Expression addLowerBoundPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    5
    addLowerBoundPropertyDescriptor(object);
    6
    addDefaultValueLiteralPropertyDescriptor(object);
    6
    addDefaultValueLiteralPropertyDescriptor(object);
    6
    addUpperBoundPropertyDescriptor(object);
    Differences
    Expression1Expression2Difference
    addDefaultValueLiteralPropertyDescriptoraddUpperBoundPropertyDescriptorMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression addDefaultValueLiteralPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addUpperBoundPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addDefaultValueLiteralPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    Expression addUpperBoundPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    6
    addUpperBoundPropertyDescriptor(object);
    7
    addDefaultValuePropertyDescriptor(object);
    7
    addDefaultValuePropertyDescriptor(object);
    7
    addManyPropertyDescriptor(object);
    Differences
    Expression1Expression2Difference
    addDefaultValuePropertyDescriptoraddManyPropertyDescriptorMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression addDefaultValuePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addManyPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addDefaultValuePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    Expression addManyPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    7
    addManyPropertyDescriptor(object);
    8
    addUnsettablePropertyDescriptor(object);
    8
    addUnsettablePropertyDescriptor(object);
    8
    addRequiredPropertyDescriptor(object);
    Differences
    Expression1Expression2Difference
    addUnsettablePropertyDescriptoraddRequiredPropertyDescriptorMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression addUnsettablePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addRequiredPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addUnsettablePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    Expression addRequiredPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    8
    addRequiredPropertyDescriptor(object);
    9
    addDerivedPropertyDescriptor(object);
    9
    addDerivedPropertyDescriptor(object);
    9
    addETypePropertyDescriptor(object);
    Differences
    Expression1Expression2Difference
    addDerivedPropertyDescriptoraddETypePropertyDescriptorMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression addDerivedPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addETypePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression addDerivedPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    Expression addETypePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    9
    addETypePropertyDescriptor(object);
    10
    addEContainingClassPropertyDescriptor(object);
    10
    addEContainingClassPropertyDescriptor(object);
    Preondition Violations
    Unmatched statement addEContainingClassPropertyDescriptor(object); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                        
    11
    return itemPropertyDescriptors;
    10
    return itemPropertyDescriptors;
    Precondition Violations (29)
    Row Violation
    1Expression addChangeablePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression addOrderedPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression addChangeablePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    4Expression addOrderedPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    5Expression addVolatilePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression addUniquePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression addVolatilePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    8Expression addUniquePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    9Expression addTransientPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10Expression addLowerBoundPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    11Expression addTransientPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    12Expression addLowerBoundPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    13Expression addDefaultValueLiteralPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    14Expression addUpperBoundPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    15Expression addDefaultValueLiteralPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    16Expression addUpperBoundPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    17Expression addDefaultValuePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    18Expression addManyPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    19Expression addDefaultValuePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    20Expression addManyPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    21Expression addUnsettablePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    22Expression addRequiredPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    23Expression addUnsettablePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    24Expression addRequiredPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    25Expression addDerivedPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    26Expression addETypePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    27Expression addDerivedPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    28Expression addETypePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized
    29Unmatched statement addEContainingClassPropertyDescriptor(object); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted