CloneSet4985


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.965class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
191366
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
2698
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchResultUpdater.java
Clone Instance
1
Line Count
9
Source Line
1366
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java

        /**
         * Returns the element's parent.
         * 
         * @return the parent or <code>null</code> if there's no parent
         */
        private Object getParent(Object element) {
                if (element instanceof IJavaElement)
                        return ((IJavaElement) element).getParent();
                else if (element instanceof IResource)
                        return ((IResource) element).getParent();
//              else if (element instanceof IStorage) {
                        // can't get parent - see bug 22376
//              }
                return null;
        }


Clone Instance
2
Line Count
6
Source Line
98
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchResultUpdater.java

        private Object getParent(Object object) {
                if (object instanceof IJavaElement)
                        return ((IJavaElement) object).getParent();
                else if (object instanceof IResource)
                        return ((IResource) object).getParent();
                return null;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Returns the element's parent.
         * 
         * @return the parent or <code>null</code> if there's no parent
         */
private Object getParent(Object  [[#variablebb15c160]]) {
  if ( [[#variablebb15c160]]instanceof IJavaElement)
    return ((IJavaElement)  [[#variablebb15c160]]).getParent();
  else
    if ( [[#variablebb15c160]]instanceof IResource)
      return ((IResource)  [[#variablebb15c160]]).getParent();
  //              else if (element instanceof IStorage) {
  // can't get parent - see bug 22376
  //              }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bb15c160]]
object 
12[[#bb15c160]]
element