CloneSet2473


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

                        for ( final Iterator iterator = modification.getChildren().iterator(); iterator.hasNext();) {
                                final Object element = iterator.next();
                                if (element instanceof IProject) {
                                        final IJavaElement project = asJavaProject((IProject) element);
                                        if (project != null) {
                                                iterator.remove();
                                                result.add(project);
                                        }
                                }
                        }
                        modification.getChildren().addAll(result);


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

                for ( final Iterator iterator = update.getRefreshTargets().iterator(); iterator.hasNext();) {
                        final Object element = iterator.next();
                        if (element instanceof IProject) {
                                final IJavaElement project = asJavaProject((IProject) element);
                                if (project != null) {
                                        iterator.remove();
                                        result.add(project);
                                }
                        }
                }
                update.getRefreshTargets().addAll(result);


Clone AbstractionParameter Count: 2Parameter Bindings

for ( final Iterator iterator = [[#variable9b1abb20]]. [[#variable9dccb1a0]]().iterator(); iterator.hasNext();) {
  final Object element = iterator.next();
  if (element instanceof IProject) {
    final IJavaElement project = asJavaProject((IProject) element);
    if (project != null) {
      iterator.remove();
      result.add(project);
    }
  }
}
 [[#variable9b1abb20]]. [[#variable9dccb1a0]]().addAll(result);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9b1abb20]]
modification 
12[[#9b1abb20]]
update 
21[[#9dccb1a0]]
getChildren 
22[[#9dccb1a0]]
getRefreshTargets