CloneSet1731


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14201.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11481
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavadocConfigurationPropertyPage.java
21467
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/NativeLibrariesPropertyPage.java
Clone Instance
1
Line Count
14
Source Line
81
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavadocConfigurationPropertyPage.java

                                IPackageFragmentRoot root = (IPackageFragmentRoot) elem;

                                IClasspathEntry entry = root.getRawClasspathEntry();
                                if (entry == null) {
                                        fIsValidElement = false;
                                }
                                else   {
                                        if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
                                                fContainerPath = entry.getPath();
                                                fEntry = JavaModelUtil.getClasspathEntryToEdit(elem.getJavaProject(), fContainerPath, root.getPath());
                                                fIsValidElement = fEntry != null;
                                        }
                                        else   {
                                                fContainerPath = null;
                                                fEntry = entry;
                                                fIsValidElement = true;
                                        }
                                }


Clone Instance
2
Line Count
14
Source Line
67
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/NativeLibrariesPropertyPage.java

                                IPackageFragmentRoot root = (IPackageFragmentRoot) elem;

                                IClasspathEntry entry = root.getRawClasspathEntry();
                                if (entry == null) {
                                        fIsValidElement = false;
                                }
                                else   {
                                        if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
                                                fContainerPath = entry.getPath();
                                                fEntry = JavaModelUtil.getClasspathEntryToEdit(elem.getJavaProject(), fContainerPath, root.getPath());
                                                fIsValidElement = fEntry != null;
                                        }
                                        else   {
                                                fContainerPath = null;
                                                fEntry = entry;
                                                fIsValidElement = true;
                                        }
                                }


Clone AbstractionParameter Count: 0Parameter Bindings

IPackageFragmentRoot root = (IPackageFragmentRoot) elem;
IClasspathEntry entry = root.getRawClasspathEntry();
if (entry == null) {
  fIsValidElement = false;
}
else {
  if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
    fContainerPath = entry.getPath();
    fEntry = JavaModelUtil.getClasspathEntryToEdit(elem.getJavaProject(), fContainerPath, root.getPath());
    fIsValidElement = fEntry != null;
  }
  else {
    fContainerPath = null;
    fEntry = entry;
    fIsValidElement = true;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None