CloneSet3767


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112465
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java
212385
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java
Clone Instance
1
Line Count
12
Source Line
465
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java

/*
 * @see IType#getPackageFragment()
 */
public IPackageFragment getPackageFragment() {
        IJavaElement parentElement = this.parent;
        while (parentElement != null) {
                if (parentElement.getElementType() == IJavaElement.PACKAGE_FRAGMENT) {
                        return (IPackageFragment) parentElement;
                }
                else {
                        parentElement = parentElement.getParent();
                }
        }
        Assert.isTrue(false);  // should not happen
        return null;
}


Clone Instance
2
Line Count
12
Source Line
385
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java

/**
 * @see IType
 */
public IPackageFragment getPackageFragment() {
        IJavaElement parentElement = this.parent;
        while (parentElement != null) {
                if (parentElement.getElementType() == IJavaElement.PACKAGE_FRAGMENT) {
                        return (IPackageFragment) parentElement;
                }
                else {
                        parentElement = parentElement.getParent();
                }
        }
        Assert.isTrue(false);  // should not happen
        return null;
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
 * @see IType
 */
/*
 * @see IType#getPackageFragment()
 */
public IPackageFragment getPackageFragment() {
  IJavaElement parentElement = this.parent;
  while (parentElement != null) {
    if (parentElement.getElementType() == IJavaElement.PACKAGE_FRAGMENT) {
      return (IPackageFragment) parentElement;
    }
    else {
      parentElement = parentElement.getParent();
    }
  }
  Assert.isTrue(false); // should not happen
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None