CloneSet2331


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12201.000executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111371
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java
212232
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageFragmentProvider.java
Clone Instance
1
Line Count
11
Source Line
371
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java

                               {
                                IResource resource = fragment.getUnderlyingResource();
                                if ((resource != null) && (resource instanceof IFolder)) {
                                        IFolder folder = (IFolder) resource;
                                        IResource res = folder.getParent();

                                        IJavaElement el = JavaCore.create(res);
                                        if (el != null) {
                                                return el;
                                        }
                                        else   {
                                                return res;
                                        }
                                }
                               }


Clone Instance
2
Line Count
12
Source Line
232
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageFragmentProvider.java

                                               {

                                                IResource resource = fragment.getUnderlyingResource();
                                                if ((resource != null) && (resource instanceof IFolder)) {
                                                        IFolder folder = (IFolder) resource;
                                                        IResource res = folder.getParent();

                                                        IJavaElement el = JavaCore.create(res);
                                                        if (el != null) {
                                                                return el;
                                                        }
                                                        else   {
                                                                return res;
                                                        }
                                                }
                                               }


Clone AbstractionParameter Count: 0Parameter Bindings

{
  IResource resource = fragment.getUnderlyingResource();
  if ((resource != null) && (resource instanceof IFolder)) {
    IFolder folder = (IFolder) resource;
    IResource res = folder.getParent();
    IJavaElement el = JavaCore.create(res);
    if (el != null) {
      return el;
    }
    else {
      return res;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None