CloneSet1835


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

        /**
         * Checks whether a given Java element is an inner type.
         *
         * @param element the java element
         * @return <code>true</code> iff the given element is an inner type
         */
        private boolean isInnerType(IJavaElement element) {

                if (element != null && element.getElementType() == IJavaElement.TYPE) {
                        IType type = (IType) element;
                        try {
                                return type.isMember();
                        } catch (JavaModelException e) {
                                IJavaElement parent = type.getParent();
                                if (parent != null) {
                                        int parentElementType = parent.getElementType();
                                        return (parentElementType != IJavaElement.COMPILATION_UNIT && parentElementType != IJavaElement.CLASS_FILE);
                                }
                          }
                }

                return false;
        }


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

                private boolean isInnerType(IJavaElement element) {
                        if (element != null && element.getElementType() == IJavaElement.TYPE) {
                                IType type = (IType) element;
                                try {
                                        return type.isMember();
                                } catch (JavaModelException e) {
                                        IJavaElement parent = type.getParent();
                                        if (parent != null) {
                                                int parentElementType = parent.getElementType();
                                                return (parentElementType != IJavaElement.COMPILATION_UNIT && parentElementType != IJavaElement.CLASS_FILE);
                                        }
                                  }
                        }
                        return false;
                }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Checks whether a given Java element is an inner type.
         *
         * @param element the java element
         * @return <code>true</code> iff the given element is an inner type
         */
private boolean isInnerType(IJavaElement element) {
  if (element != null && element.getElementType() == IJavaElement.TYPE) {
    IType type = (IType) element;
    try {
      return type.isMember();
    }
    catch (JavaModelException e) {
      IJavaElement parent = type.getParent();
      if (parent != null) {
        int parentElementType = parent.getElementType();
        return (parentElementType != IJavaElement.COMPILATION_UNIT && parentElementType != IJavaElement.CLASS_FILE);
      }
    }
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None