CloneSet4781


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5230.980class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1580
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMCompilationUnit.java
25324
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMField.java
Clone Instance
1
Line Count
5
Source Line
80
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMCompilationUnit.java

/**
 * @see IDOMNode#getJavaElement
 */
public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentException {
        if (parent.getElementType() == IJavaElement.PACKAGE_FRAGMENT) {
                return ((IPackageFragment) parent).getCompilationUnit(getName());
        }
        else   {
                throw new IllegalArgumentException(Messages.element_illegalParent);
        }
}


Clone Instance
2
Line Count
5
Source Line
324
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMField.java

/**
 * @see IDOMNode#getJavaElement
 */
public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentException {
        if (parent.getElementType() == IJavaElement.TYPE) {
                return ((IType) parent).getField(getName());
        }
        else   {
                throw new IllegalArgumentException(Messages.element_illegalParent);
        }
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * @see IDOMNode#getJavaElement
 */
public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentException {
  if (parent.getElementType() == IJavaElement. [[#variable62a6de20]]) {
    return (( [[#variable62a6ddc0]]) parent). [[#variable62a6dca0]](getName());
  }
  else {
    throw new IllegalArgumentException(Messages.element_illegalParent);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62a6de20]]
PACKAGE_FRAGMENT 
12[[#62a6de20]]
TYPE 
21[[#62a6ddc0]]
IPackageFragment 
22[[#62a6ddc0]]
IType 
31[[#62a6dca0]]
getCompilationUnit 
32[[#62a6dca0]]
getField