CloneSet3580


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6201.000statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16197
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDetailFormattersManager.java
26253
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/logicalstructures/JavaLogicalStructure.java
Clone Instance
1
Line Count
6
Source Line
197
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDetailFormattersManager.java

                if (sourceElement instanceof IJavaElement) {
                        project = ((IJavaElement) sourceElement).getJavaProject();
                }
                else   if (sourceElement instanceof IResource) {
                        IJavaProject resourceProject = JavaCore.create(((IResource) sourceElement).getProject());
                        if (resourceProject.exists()) {
                                project = resourceProject;
                        }
                       }


Clone Instance
2
Line Count
6
Source Line
253
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/logicalstructures/JavaLogicalStructure.java

                        if (sourceElement instanceof IJavaElement) {
                                project = ((IJavaElement) sourceElement).getJavaProject();
                        }
                        else   if (sourceElement instanceof IResource) {
                                IJavaProject resourceProject = JavaCore.create(((IResource) sourceElement).getProject());
                                if (resourceProject.exists()) {
                                        project = resourceProject;
                                }
                               }


Clone AbstractionParameter Count: 0Parameter Bindings

if (sourceElement instanceof IJavaElement) {
  project = ((IJavaElement) sourceElement).getJavaProject();
}
else
  if (sourceElement instanceof IResource) {
    IJavaProject resourceProject = JavaCore.create(((IResource) sourceElement).getProject());
    if (resourceProject.exists()) {
      project = resourceProject;
    }
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None