CloneSet4867


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.993class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16965
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
26785
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaOutlineInformationControl.java
Clone Instance
1
Line Count
6
Source Line
965
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java

        /**
         * Returns the primary type of a class file.
         *
         * @param classFile the class file
         * @return returns the primary type of the class file, or <code>null</code>
         * if is does not have one
         */
        protected IType getMainType(IClassFile classFile) {
                try {
                        IType type = classFile.getType();
                        return type != null && type.exists() ? type:  null;
                } catch (JavaModelException e) {
                        return null;
                  }
        }


Clone Instance
2
Line Count
6
Source Line
785
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaOutlineInformationControl.java

        /**
         * Returns the primary type of a class file.
         *
         * @param classFile the class file
         * @return returns the primary type of the class file, or <code>null</code>
         * if is does not have one
         */
        private IType getMainType(IClassFile classFile) {
                try {
                        IType type = classFile.getType();
                        return type != null && type.exists() ? type:  null;
                } catch (JavaModelException e) {
                        return null;
                  }
        }


Clone AbstractionParameter Count: 1Parameter Bindings

 [[#variable95e982a0]]IType getMainType(IClassFile classFile) {
  try {
    IType type = classFile.getType();
    return type != null && type.exists() ? type: null;
  }
  catch (JavaModelException e) {
    return null;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#95e982a0]]
/**
 * Returns the primary type of a class file.
 *
 * @param classFile the class file
 * @return returns the primary type of the class file, or <code>null</code>
 * if is does not have one
 */
protected 
12[[#95e982a0]]
/**
 * Returns the primary type of a class file.
 *
 * @param classFile the class file
 * @return returns the primary type of the class file, or <code>null</code>
 * if is does not have one
 */
private