CloneSet1021


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4520.988statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1448
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/AddFolderToIndex.java
2451
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexBinaryFolder.java
3441
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/RemoveFolderFromIndex.java
4429
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/RemoveFromIndex.java
5433
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/SaveIndex.java
Clone Instance
1
Line Count
4
Source Line
48
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/AddFolderToIndex.java

                /* ensure no concurrent write access to index */
                Index index = this.manager.getIndex(this.containerPath, true, 
                                                                              /*reuse index file*/
                                                                                                   true
                                                                                                        /*create if none*/
                                                                                                       );
                if (index == null) return true;
                ReadWriteMonitor monitor = index.monitor;
                if (monitor == null) return true; // index got deleted since acquired


Clone Instance
2
Line Count
4
Source Line
51
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexBinaryFolder.java

                Index index = this.manager.getIndexForUpdate(this.containerPath, true, 
                                                                                       /*reuse index file*/
                                                                                                            true
                                                                                                                 /*create if none*/
                                                                                                                );
                if (index == null) return true;
                ReadWriteMonitor monitor = index.monitor;
                if (monitor == null) return true; // index got deleted since acquired


Clone Instance
3
Line Count
4
Source Line
41
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/RemoveFolderFromIndex.java

                /* ensure no concurrent write access to index */
                Index index = this.manager.getIndex(this.containerPath, true, 
                                                                              /*reuse index file*/
                                                                                                   false
                                                                                                         /*create if none*/
                                                                                                        );
                if (index == null) return true;
                ReadWriteMonitor monitor = index.monitor;
                if (monitor == null) return true; // index got deleted since acquired


Clone Instance
4
Line Count
4
Source Line
29
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/RemoveFromIndex.java

                /* ensure no concurrent write access to index */
                Index index = this.manager.getIndex(this.containerPath, true, 
                                                                              /*reuse index file*/
                                                                                                   false
                                                                                                         /*create if none*/
                                                                                                        );
                if (index == null) return true;
                ReadWriteMonitor monitor = index.monitor;
                if (monitor == null) return true; // index got deleted since acquired


Clone Instance
5
Line Count
4
Source Line
33
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/SaveIndex.java

                /* ensure no concurrent write access to index */
                Index index = this.manager.getIndex(this.containerPath, true
                                                                             /*reuse index file*/
                                                                            ,                      false
                                                                                                         /*don't create if none*/
                                                                                                        );
                if (index == null) return true;
                ReadWriteMonitor monitor = index.monitor;
                if (monitor == null) return true; // index got deleted since acquired


Clone AbstractionParameter Count: 2Parameter Bindings

/* ensure no concurrent write access to index */
Index index = this.manager. [[#variable97227e60]](this.containerPath, true
                                                                          /*reuse index file*/
                                                                          ,  [[#variable9c094500]]
                                                                           /*don't create if none*/
                                                                           /*create if none*/
                                                                           );
if (index == null)
  return true;
ReadWriteMonitor monitor = index.monitor;
if (monitor == null)
  return true; // index got deleted since acquired
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#97227e60]]
getIndex 
12[[#97227e60]]
getIndexForUpdate 
13[[#97227e60]]
getIndex 
14[[#97227e60]]
getIndex 
15[[#97227e60]]
getIndex 
21[[#9c094500]]
false 
22[[#9c094500]]
/*reuse index file*/
true 
23[[#9c094500]]
/*reuse index file*/
true 
24[[#9c094500]]
/*reuse index file*/
false 
25[[#9c094500]]
/*reuse index file*/
false