src/share/classes/sun/tools/jconsole/inspector/TableSorter.java
Print this page
@@ -144,11 +144,11 @@
restoreListeners();
// update row heights in XMBeanAttributes (required by expandable cells)
if (attrs != null) {
for (int i = 0; i < getRowCount(); i++) {
- Vector<?> data = (Vector) dataVector.elementAt(i);
+ Vector<?> data = dataVector.elementAt(i);
attrs.updateRowHeight(data.elementAt(1), i);
}
}
}
@@ -215,10 +215,11 @@
if( lo <= hi0 )
quickSort(lo, hi0 , key, isAscending);
}
}
+ @SuppressWarnings("unchecked")
private Vector<Object> getRow(int row) {
return dataVector.elementAt(row);
}
@SuppressWarnings("unchecked")