CloneSet4944


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16154
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.java
26118
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java
Clone Instance
1
Line Count
6
Source Line
154
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaDropAdapterAssistant.java

        private IContainer getActualTarget(Object dropTarget) throws JavaModelException {
                if (dropTarget instanceof IContainer)
                        return (IContainer) dropTarget;
                else if (dropTarget instanceof IJavaElement)
                        return getActualTarget(((IJavaElement) dropTarget).getCorrespondingResource());
                return null;
        }


Clone Instance
2
Line Count
6
Source Line
118
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java

        private IContainer getActualTarget(Object dropTarget) throws JavaModelException {
                if (dropTarget instanceof IContainer)
                        return (IContainer) dropTarget;
                else if (dropTarget instanceof IJavaElement)
                        return getActualTarget(((IJavaElement) dropTarget).getCorrespondingResource());
                return null;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private IContainer getActualTarget(Object dropTarget) throws JavaModelException {
  if (dropTarget instanceof IContainer)
    return (IContainer) dropTarget;
  else
    if (dropTarget instanceof IJavaElement)
      return getActualTarget(((IJavaElement) dropTarget).getCorrespondingResource());
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None