CloneSet367


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20201.000method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120171
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/provider/resource/ResourceItemProviderAdapterFactory.java
220135
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/tree/provider/TreeItemProviderAdapterFactory.java
Next
Last
Clone Instance
1
Line Count
20
Source Line
171
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/provider/resource/ResourceItemProviderAdapterFactory.java

/**
 * @generated
 */
@Override public Object adapt(Object object, Object type) {
  // This is a kludge to deal with enumerators, which crash the doSwitch.
  //
  if (object instanceof EObject && ((EObject) object).eClass() == null) {
    return null;
  }
  if (isFactoryForType(type)) {
    Object adapter = super.adapt(object, type);
    if ( !(type instanceof Class) || (((Class<? >) type).isInstance(adapter))) {
      return adapter;
    }
  }
  return null;
}


First
Previous
Clone Instance
2
Line Count
20
Source Line
135
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/tree/provider/TreeItemProviderAdapterFactory.java

@Override public Object adapt(Object object, Object type) {
  // This is a kludge to deal with enumerators, which crash the doSwitch.
  //
  if (object instanceof EObject && ((EObject) object).eClass() == null) {
    return null;
  }
  if (isFactoryForType(type)) {
    Object adapter = super.adapt(object, type);
    if ( !(type instanceof Class) || (((Class<? >) type).isInstance(adapter))) {
      return adapter;
    }
  }
  return null;
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
   * @generated
   */
@Override public Object adapt(Object object, Object type) {
  // This is a kludge to deal with enumerators, which crash the doSwitch.
  //
  if (object instanceof EObject && ((EObject) object).eClass() == null) {
    return null;
  }
  if (isFactoryForType(type)) {
    Object adapter = super.adapt(object, type);
    if ( !(type instanceof Class) || (((Class<? >) type).isInstance(adapter))) {
      return adapter;
    }
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None