CloneSet1890


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9250.983class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19387
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java
29561
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java
Clone Instance
1
Line Count
9
Source Line
387
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java

/**
 * Index the content of the given source folder.
 */
public void indexSourceFolder(JavaProject javaProject, IPath sourceFolder, char[][] inclusionPatterns, char[][] exclusionPatterns) {
        IProject project = javaProject.getProject();
        if (this.jobEnd > this.jobStart) {
                // skip it if a job to index the project is already in the queue
                IndexRequest request = new IndexAllProject(project, this );
                if (isJobWaiting(request)) return;
        }

        this.request(new AddFolderToIndex(sourceFolder, project, inclusionPatterns, exclusionPatterns, this ));
}


Clone Instance
2
Line Count
9
Source Line
561
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java

/**
 * Remove the content of the given source folder from the index.
 */
public void removeSourceFolderFromIndex(JavaProject javaProject, IPath sourceFolder, char[][] inclusionPatterns, char[][] exclusionPatterns) {
        IProject project = javaProject.getProject();
        if (this.jobEnd > this.jobStart) {
                // skip it if a job to index the project is already in the queue
                IndexRequest request = new IndexAllProject(project, this );
                if (isJobWaiting(request)) return;
        }

        this.request(new RemoveFolderFromIndex(sourceFolder, inclusionPatterns, exclusionPatterns, project, this ));
}


Clone AbstractionParameter Count: 5Parameter Bindings

/**
 * Index the content of the given source folder.
 */
/**
 * Remove the content of the given source folder from the index.
 */
public void [[#variable9b260340]](JavaProject javaProject, IPath sourceFolder, char[][] inclusionPatterns, char[][] exclusionPatterns) {
  IProject project = javaProject.getProject();
  if (this.jobEnd > this.jobStart) {
    // skip it if a job to index the project is already in the queue
    IndexRequest request = new IndexAllProject(project, this );
    if (isJobWaiting(request))
      return;
  }
  this.request(new [[#variable9b2602e0]](sourceFolder,  [[#variable9b260240]],  [[#variable9b1a1360]],  [[#variable9b2602c0]], this ));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9b260340]]
indexSourceFolder 
12[[#9b260340]]
removeSourceFolderFromIndex 
21[[#9b2602e0]]
AddFolderToIndex 
22[[#9b2602e0]]
RemoveFolderFromIndex 
31[[#9b260240]]
project 
32[[#9b260240]]
inclusionPatterns 
41[[#9b1a1360]]
inclusionPatterns 
42[[#9b1a1360]]
exclusionPatterns 
51[[#9b2602c0]]
exclusionPatterns 
52[[#9b2602c0]]
project