CloneSet3347


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10201.000executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110274
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java
210293
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java
Clone Instance
1
Line Count
10
Source Line
274
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java

                                                                       {
                                        IPackageFragment pkgFragment = (IPackageFragment) parent;
                                        LogicalPackage logicalPkg = findLogicalPackage(pkgFragment);
                                        if (logicalPkg != null)
                                                return logicalPkg;
                                        else {
                                                LogicalPackage lp = createLogicalPackage(pkgFragment);
                                                if (lp == null)
                                                        return pkgFragment;
                                                else return lp;
                                        }
                                                                       }


Clone Instance
2
Line Count
10
Source Line
293
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java

                                                                      {
                                        IPackageFragment pkgFragment = (IPackageFragment) parent;
                                        LogicalPackage logicalPkg = findLogicalPackage(pkgFragment);
                                        if (logicalPkg != null)
                                                return logicalPkg;
                                        else {
                                                LogicalPackage lp = createLogicalPackage(pkgFragment);
                                                if (lp == null)
                                                        return pkgFragment;
                                                else return lp;
                                        }
                                                                      }


Clone AbstractionParameter Count: 0Parameter Bindings

{
  IPackageFragment pkgFragment = (IPackageFragment) parent;
  LogicalPackage logicalPkg = findLogicalPackage(pkgFragment);
  if (logicalPkg != null)
    return logicalPkg;
  else {
    LogicalPackage lp = createLogicalPackage(pkgFragment);
    if (lp == null)
      return pkgFragment;
    else
      return lp;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None