CloneSet5388


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17152
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementAdapterFactory.java
2770
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaWorkbenchAdapter.java
Clone Instance
1
Line Count
7
Source Line
152
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementAdapterFactory.java

        private IJavaElement getJavaElement(Object element) {
                if (element instanceof IJavaElement)
                        return (IJavaElement) element;
                if (element instanceof IClassFileEditorInput)
                        return ((IClassFileEditorInput) element).getClassFile().getPrimaryElement();

                return null;
        }


Clone Instance
2
Line Count
7
Source Line
70
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaWorkbenchAdapter.java

        private IJavaElement getJavaElement(Object element) {
                if (element instanceof IJavaElement)
                        return (IJavaElement) element;
                if (element instanceof IClassFileEditorInput)
                        return ((IClassFileEditorInput) element).getClassFile().getPrimaryElement();

                return null;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private IJavaElement getJavaElement(Object element) {
  if (element instanceof IJavaElement)
    return (IJavaElement) element;
  if (element instanceof IClassFileEditorInput)
    return ((IClassFileEditorInput) element).getClassFile().getPrimaryElement();
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None