CloneSet1114


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16220.990class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116123
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/SearchUtil.java
216101
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchUtil.java
Clone Instance
1
Line Count
16
Source Line
123
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/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;
        }


Clone Instance
2
Line Count
16
Source Line
101
Source File
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 workingSetLabel = workingSets[i].getLabel();
                                if (firstFound)
                                        result = Messages.format(SearchMessages.SearchUtil_workingSetConcatenation, new String[] {
                                                                                                                                  result, workingSetLabel
                                                                                                                                 } );
                                else {
                                        result = workingSetLabel;
                                        firstFound = true;
                                }
                        }
                }
                return result;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b5f98840]]
workingSetLabel 
12[[#b5f98840]]
workingSetName 
21[[#b5f98800]]
SearchMessages 
22[[#b5f98800]]
CallHierarchyMessages