CloneSet3551


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14201.000switch_groups[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1151034
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessor.java
2141132
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessor.java
Clone Instance
1
Line Count
15
Source Line
1034
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessor.java

                                case IJavaElement.PACKAGE_FRAGMENT_ROOT:
                                        // when a root is added, and is on the classpath, the project must be updated
                                        JavaProject project = (JavaProject) element.getJavaProject();

                                        // refresh pkg fragment roots and caches of the project (and its dependents)
                                        this.rootsToRefresh.add(project);
                                        this.projectCachesToReset.add(project);

                                        break;
                                case IJavaElement.PACKAGE_FRAGMENT:
                                        // reset project's package fragment cache 
                                        project = (JavaProject) element.getJavaProject();
                                        this.projectCachesToReset.add(project);

                                        break;


Clone Instance
2
Line Count
14
Source Line
1132
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessor.java

                        case IJavaElement.PACKAGE_FRAGMENT_ROOT:
                                JavaProject project = (JavaProject) element.getJavaProject();

                                // refresh pkg fragment roots and caches of the project (and its dependents)
                                this.rootsToRefresh.add(project);
                                this.projectCachesToReset.add(project);

                                break;
                        case IJavaElement.PACKAGE_FRAGMENT:
                                // reset package fragment cache
                                project = (JavaProject) element.getJavaProject();
                                this.projectCachesToReset.add(project);

                                break;


Clone AbstractionParameter Count: 0Parameter Bindings

case IJavaElement.PACKAGE_FRAGMENT_ROOT:
  // when a root is added, and is on the classpath, the project must be updated
  JavaProject project = (JavaProject) element.getJavaProject();
  // refresh pkg fragment roots and caches of the project (and its dependents)
  this.rootsToRefresh.add(project);
  this.projectCachesToReset.add(project);
  break;
case IJavaElement.PACKAGE_FRAGMENT:
  // reset package fragment cache
  // reset project's package fragment cache 
  project = (JavaProject) element.getJavaProject();
  this.projectCachesToReset.add(project);
  break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None