CloneSet694


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12210.991method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11257
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/SortedComboBoxModel.java
21286
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/SortedListModel.java
Next
Last
Clone Instance
1
Line Count
12
Source Line
57
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/SortedComboBoxModel.java

/**
 * Return the appropriate position for the passed object in the list. This
 * does a sequential read through the list so you wouldn't want to use it
 * for large lists.
 */
protected int getIndexInList(Object obj) {
  final int limit = getSize();
  final String objStr = obj.toString();
  for (int i = 0; i < limit; ++i) {
    if (objStr.compareToIgnoreCase(getElementAt(i).toString()) <= 0) {
      return i;
    }
  }
  return limit;
}


First
Previous
Clone Instance
2
Line Count
12
Source Line
86
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/SortedListModel.java

/**
 * Return the appropriate position for the passed object in the list. This
 * does a sequential read through the list so you wouldn't want to use it
 * for large lists.
 */
protected int getIndexInList(Object obj) {
  final int limit = getSize();
  final String objStr = obj.toString();
  for (int i = 0; i < limit; ++i) {
    if (objStr.compareToIgnoreCase(get(i).toString()) <= 0) {
      return i;
    }
  }
  return limit;
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Return the appropriate position for the passed object in the list. This
         * does a sequential read through the list so you wouldn't want to use it
         * for large lists.
         */
protected int getIndexInList(Object obj) {
  final int limit = getSize();
  final String objStr = obj.toString();
  for (int i = 0; i < limit; ++i) {
    if (objStr.compareToIgnoreCase( [[#variable1cc5ad60]](i).toString()) <= 0) {
      return i;
    }
  }
  return limit;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1cc5ad60]]
getElementAt 
12[[#1cc5ad60]]
get