Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 4 | 0.966 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 81 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/SearchUtil.java |
2 | 18 | 160 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/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(); |
| ||||
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(); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#57af2fc0]] | SearchUtil.LRU_WORKINGSET_LIST_SIZE |
1 | 2 | [[#57af2fc0]] | LRU_WORKINGSET_LIST_SIZE |
2 | 1 | [[#77378ae0]] | SearchUtil.fgSettingsStore |
2 | 2 | [[#77378ae0]] | settingsStore |
3 | 1 | [[#5d4c02a0]] | SearchUtil.STORE_LRU_WORKING_SET_NAMES |
3 | 2 | [[#5d4c02a0]] | STORE_LRU_WORKING_SET_NAMES |
4 | 1 | [[#5d4c02c0]] | SearchUtil.fgLRUWorkingSets |
4 | 2 | [[#5d4c02c0]] | fgLRUWorkingSets |