< prev index next >

src/com/sun/javatest/util/OrderedTwoWayTable.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

*** 119,129 **** * This is a reference equality search. * @param data the vector in which to search * @param target the object to search for * @return the index of the target in the vector, or -1 if not found */ ! protected int findIndex(Vector data, Object target) { for (int i = 0; i < data.size(); i++) if (data.elementAt(i) == target) return i; return -1; --- 119,129 ---- * This is a reference equality search. * @param data the vector in which to search * @param target the object to search for * @return the index of the target in the vector, or -1 if not found */ ! protected int findIndex(Vector<?> data, Object target) { for (int i = 0; i < data.size(); i++) if (data.elementAt(i) == target) return i; return -1;
< prev index next >