if (eGenericType.getETypeParameter() != null || !eGenericType.getETypeArguments().isEmpty()) { return true; }
if (propertyId.equals(itemPropertyDescriptor.getId(object)) || propertyId.equals(itemPropertyDescriptor.getFeature(object))) { return itemPropertyDescriptor; }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EOperationImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProviderAdapter.java
Method name: boolean isSet() Method name: IItemPropertyDescriptor getPropertyDescriptor(Object, Object)
Number of AST nodes: 2 Number of AST nodes: 2
1
if (eGenericType.getETypeParameter() != null || !eGenericType.getETypeArguments().isEmpty())
1
if (
2
              {
3
   
2
propertyId.equals(itemPropertyDescriptor.getId(object)) || propertyId.equals(itemPropertyDescriptor.getFeature(object)))
3
      {
4
             return true;
4
        return 
5
        
5
itemPropertyDescriptor;
6
      }
6
      }
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.3
Clones locationClones are in different classes
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)79.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    2
    if (eGenericType.getETypeParameter() != null || !eGenericType.getETypeArguments().isEmpty())
    2
    if (eGenericType.getETypeParameter() != null || !eGenericType.getETypeArguments().isEmpty())
    2
    if (propertyId.equals(itemPropertyDescriptor.getId(object)) || propertyId.equals(itemPropertyDescriptor.getFeature(object)))
    Differences
    Expression1Expression2Difference
    !eGenericType.getETypeArguments().isEmpty()propertyId.equals(itemPropertyDescriptor.getFeature(object))TYPE_COMPATIBLE_REPLACEMENT
    eGenericType.getETypeParameter() != nullpropertyId.equals(itemPropertyDescriptor.getId(object))INFIX_LEFT_OPERAND_MISMATCH
    2
    if (propertyId.equals(itemPropertyDescriptor.getId(object)) || propertyId.equals(itemPropertyDescriptor.getFeature(object)))
                                                                      
    3
    return itemPropertyDescriptor;
    Preondition Violations
    Unmatched return itemPropertyDescriptor;
    3
    return itemPropertyDescriptor;
    3
    return true;
    3
    return true;
    Preondition Violations
    Unmatched return true;
                                  
    Precondition Violations (2)
    Row Violation
    1Unmatched return itemPropertyDescriptor;
    2Unmatched return true;