CloneSet2278


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9240.981statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19237
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/model/JavaSynchronizationContentProvider.java
29246
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/model/JavaSynchronizationContentProvider.java
Clone Instance
1
Line Count
9
Source Line
237
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/model/JavaSynchronizationContentProvider.java

                for (int index = 0; index < changes.length; index++) {
                        final IResource resource = ResourceDiffTree.getResourceFor(changes[index]);
                        if (resource != null) {
                                final IJavaProject project = asJavaProject(resource.getProject());
                                if (project != null)
                                        result.add(project);
                        }
                }
                final IDiff[] additions = event.getAdditions();


Clone Instance
2
Line Count
9
Source Line
246
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/model/JavaSynchronizationContentProvider.java

                for (int index = 0; index < additions.length; index++) {
                        final IResource resource = ResourceDiffTree.getResourceFor(additions[index]);
                        if (resource != null) {
                                final IJavaProject project = asJavaProject(resource.getProject());
                                if (project != null)
                                        result.add(project);
                        }
                }
                final IPath[] removals = event.getRemovals();


Clone AbstractionParameter Count: 4Parameter Bindings

for (int index = 0; index <  [[#variable76b96c40]].length; index++) {
  final IResource resource = ResourceDiffTree.getResourceFor( [[#variable76b96c40]][index]);
  if (resource != null) {
    final IJavaProject project = asJavaProject(resource.getProject());
    if (project != null)
      result.add(project);
  }
}
final [[#variable76b96b40]][]  [[#variable76b96b80]]= event. [[#variable76b96b00]]();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#76b96c40]]
changes 
12[[#76b96c40]]
additions 
21[[#76b96b40]]
IDiff 
22[[#76b96b40]]
IPath 
31[[#76b96b80]]
additions 
32[[#76b96b80]]
removals 
41[[#76b96b00]]
getAdditions 
42[[#76b96b00]]
getRemovals