CloneSet893


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18240.966statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11881
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/SearchUtil.java
218160
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchUtil.java
Clone Instance
1
Line Count
18
Source Line
81
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/SearchUtil.java

                for (int i = SearchUtil.LRU_WORKINGSET_LIST_SIZE - 1; i >= 0; i--) {
                        String[] lruWorkingSetNames = SearchUtil.fgSettingsStore.getArray(SearchUtil.STORE_LRU_WORKING_SET_NAMES + i);
                        if (lruWorkingSetNames != null) {
                                Set workingSets = new HashSet(2);
                                for (int j = 0; j < lruWorkingSetNames.length; j++) {
                                        IWorkingSet workingSet = PlatformUI.getWorkbench().getWorkingSetManager().getWorkingSet(lruWorkingSetNames[j]);
                                        if (workingSet != null) {
                                                workingSets.add(workingSet);
                                        }
                                }
                                foundLRU = true;
                                if ( !workingSets.isEmpty())
                                        SearchUtil.fgLRUWorkingSets.add((IWorkingSet[]) workingSets.toArray(new IWorkingSet[workingSets.size()]));
                        }
                }
                if ( !foundLRU)
                        // try old preference format
                        restoreFromOldFormat();


Clone Instance
2
Line Count
18
Source Line
160
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchUtil.java

                for (int i = LRU_WORKINGSET_LIST_SIZE - 1; i >= 0; i--) {
                        String[] lruWorkingSetNames = settingsStore.getArray(STORE_LRU_WORKING_SET_NAMES + i);
                        if (lruWorkingSetNames != null) {
                                Set workingSets = new HashSet(2);
                                for (int j = 0; j < lruWorkingSetNames.length; j++) {
                                        IWorkingSet workingSet = PlatformUI.getWorkbench().getWorkingSetManager().getWorkingSet(lruWorkingSetNames[j]);
                                        if (workingSet != null) {
                                                workingSets.add(workingSet);
                                        }
                                }
                                foundLRU = true;
                                if ( !workingSets.isEmpty())
                                        fgLRUWorkingSets.add((IWorkingSet[]) workingSets.toArray(new IWorkingSet[workingSets.size()]));
                        }
                }
                if ( !foundLRU)
                        // try old preference format
                        restoreFromOldFormat();


Clone AbstractionParameter Count: 4Parameter Bindings

for (int i = [[#variable57af2fc0]] - 1; i >= 0; i--) {
  String[] lruWorkingSetNames = [[#variable77378ae0]].getArray( [[#variable5d4c02a0]] + i);
  if (lruWorkingSetNames != null) {
    Set workingSets = new HashSet(2);
    for (int j = 0; j < lruWorkingSetNames.length; j++) {
      IWorkingSet workingSet = PlatformUI.getWorkbench().getWorkingSetManager().getWorkingSet(lruWorkingSetNames[j]);
      if (workingSet != null) {
        workingSets.add(workingSet);
      }
    }
    foundLRU = true;
    if ( !workingSets.isEmpty())
       [[#variable5d4c02c0]].add((IWorkingSet[]) workingSets.toArray(new IWorkingSet[workingSets.size()]));
  }
}
if ( !foundLRU)
  // try old preference format
  restoreFromOldFormat();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#57af2fc0]]
SearchUtil.LRU_WORKINGSET_LIST_SIZE 
12[[#57af2fc0]]
LRU_WORKINGSET_LIST_SIZE 
21[[#77378ae0]]
SearchUtil.fgSettingsStore 
22[[#77378ae0]]
settingsStore 
31[[#5d4c02a0]]
SearchUtil.STORE_LRU_WORKING_SET_NAMES 
32[[#5d4c02a0]]
STORE_LRU_WORKING_SET_NAMES 
41[[#5d4c02c0]]
SearchUtil.fgLRUWorkingSets 
42[[#5d4c02c0]]
fgLRUWorkingSets