CloneSet3017


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8201.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18216
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CopyPackageFragmentRootOperation.java
28141
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeletePackageFragmentRootOperation.java
Clone Instance
1
Line Count
8
Source Line
216
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CopyPackageFragmentRootOperation.java

                if (root == null || !root.exists()) {
                        return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, root);
                }

                IResource resource = root.getResource();
                if (resource instanceof IFolder) {
                        if (resource.isLinked()) {
                                return new JavaModelStatus(IJavaModelStatusConstants.INVALID_RESOURCE, root);
                        }
                }


Clone Instance
2
Line Count
8
Source Line
141
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeletePackageFragmentRootOperation.java

                if (root == null || !root.exists()) {
                        return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, root);
                }

                IResource resource = root.getResource();
                if (resource instanceof IFolder) {
                        if (resource.isLinked()) {
                                return new JavaModelStatus(IJavaModelStatusConstants.INVALID_RESOURCE, root);
                        }
                }


Clone AbstractionParameter Count: 0Parameter Bindings

if (root == null || !root.exists()) {
  return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, root);
}
IResource resource = root.getResource();
if (resource instanceof IFolder) {
  if (resource.isLinked()) {
    return new JavaModelStatus(IJavaModelStatusConstants.INVALID_RESOURCE, root);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None