Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 2 | 0.990 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 123 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/SearchUtil.java |
2 | 16 | 101 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchUtil.java |
| ||||
public static String toString(IWorkingSet[] workingSets) { Arrays.sort(workingSets, new WorkingSetComparator()); String result = ""; //$NON-NLS-1$ if (workingSets != null && workingSets.length > 0) { boolean firstFound = false; for (int i = 0; i < workingSets.length; i++) { String workingSetName = workingSets[i].getLabel(); if (firstFound) result = Messages.format(CallHierarchyMessages.SearchUtil_workingSetConcatenation, new String[] { result, workingSetName } ); else { result = workingSetName; firstFound = true; } } } return result; } |
| ||||
public static String toString(IWorkingSet[] workingSets) { Arrays.sort(workingSets, new WorkingSetComparator()); String result = ""; //$NON-NLS-1$ if (workingSets != null && workingSets.length > 0) { boolean firstFound = false; for (int i = 0; i < workingSets.length; i++) { String workingSetLabel = workingSets[i].getLabel(); if (firstFound) result = Messages.format(SearchMessages.SearchUtil_workingSetConcatenation, new String[] { result, workingSetLabel } ); else { result = workingSetLabel; firstFound = true; } } } return result; } |
| |||
public static String toString(IWorkingSet[] workingSets) { Arrays.sort(workingSets, new WorkingSetComparator()); String result = ""; //$NON-NLS-1$ if (workingSets != null && workingSets.length > 0) { boolean firstFound = false; for (int i = 0; i < workingSets.length; i++) { String [[#variableb5f98840]]= workingSets[i].getLabel(); if (firstFound) result = Messages.format( [[#variableb5f98800]].SearchUtil_workingSetConcatenation, new String[] { result, [[#variableb5f98840]] } ); else { result = [[#variableb5f98840]]; firstFound = true; } } } return result; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b5f98840]] | workingSetLabel |
1 | 2 | [[#b5f98840]] | workingSetName |
2 | 1 | [[#b5f98800]] | SearchMessages |
2 | 2 | [[#b5f98800]] | CallHierarchyMessages |