Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 5 | 4 | 0.952 | class_body_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 138 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java |
2 | 9 | 157 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java |
3 | 9 | 254 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java |
4 | 9 | 272 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java |
5 | 9 | 87 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/HierarchicalDecorationContext.java |
| ||||
public Object getModelObject() { return fProject; } public IProject[] getProjects() { return new IProject[] { fProject.getProject() }; } public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException { return new ResourceTraversal[] { new ResourceTraversal(new IResource[] { fProject.getProject() }, IResource.DEPTH_INFINITE, 0) }; } |
| ||||
public Object getModelObject() { return fRoot; } public IProject[] getProjects() { return new IProject[] { fRoot.getJavaProject().getProject() }; } public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException { return new ResourceTraversal[] { new ResourceTraversal(new IResource[] { fRoot.getResource() }, IResource.DEPTH_INFINITE, 0) }; } |
| ||||
public Object getModelObject() { return fUnit; } public IProject[] getProjects() { return new IProject[] { fUnit.getJavaProject().getProject() }; } public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException { return new ResourceTraversal[] { new ResourceTraversal(new IResource[] { fUnit.getResource() }, IResource.DEPTH_ONE, 0) }; } |
| ||||
public Object getModelObject() { return fClassFile; } public IProject[] getProjects() { return new IProject[] { fClassFile.getJavaProject().getProject() }; } public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException { return new ResourceTraversal[] { new ResourceTraversal(new IResource[] { fClassFile.getResource() }, IResource.DEPTH_ONE, 0) }; } |
| ||||
public Object getModelObject() { return fPack; } public IProject[] getProjects() { return new IProject[] { fPack.getJavaProject().getProject() }; } public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException { return new ResourceTraversal[] { new ResourceTraversal(new IResource[] { fPack.getResource() }, IResource.DEPTH_INFINITE, 0) }; } |
| |||
public Object getModelObject() { return [[#variablec074cea0]]; } public IProject[] getProjects() { return new IProject[] { [[#variablec0703f20]].getProject() }; } public ResourceTraversal[] getTraversals(ResourceMappingContext context, IProgressMonitor monitor) throws CoreException { return new ResourceTraversal[] { new ResourceTraversal(new IResource[] { [[#variablec074cea0]]. [[#variablec074cae0]]() }, IResource. [[#variablec074cec0]], 0) }; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#c074cea0]] | fPack |
1 | 2 | [[#c074cea0]] | fProject |
1 | 3 | [[#c074cea0]] | fRoot |
1 | 4 | [[#c074cea0]] | fUnit |
1 | 5 | [[#c074cea0]] | fClassFile |
2 | 1 | [[#c0703f20]] | fPack.getJavaProject() |
2 | 2 | [[#c0703f20]] | fProject |
2 | 3 | [[#c0703f20]] | fRoot.getJavaProject() |
2 | 4 | [[#c0703f20]] | fUnit.getJavaProject() |
2 | 5 | [[#c0703f20]] | fClassFile.getJavaProject() |
3 | 1 | [[#c074cae0]] | getResource |
3 | 2 | [[#c074cae0]] | getProject |
3 | 3 | [[#c074cae0]] | getResource |
3 | 4 | [[#c074cae0]] | getResource |
3 | 5 | [[#c074cae0]] | getResource |
4 | 1 | [[#c074cec0]] | DEPTH_INFINITE |
4 | 2 | [[#c074cec0]] | DEPTH_INFINITE |
4 | 3 | [[#c074cec0]] | DEPTH_INFINITE |
4 | 4 | [[#c074cec0]] | DEPTH_ONE |
4 | 5 | [[#c074cec0]] | DEPTH_ONE |