title: Java call to Vector.set() results in 'unchecked' warning
body: <p>I am extending <code>javax.swing.table.DefaultTableModel</code>, and am adding a method which calls <code>Vector.set(...)</code> on a class variable.  It results in an <code>unchecked</code> warning, which I want to fix rather than suppress.  Since this isn't extending <code>Vector</code>, I can't use <code>&lt;E&gt;</code> it seems, and I don't have a way of knowing what type of <code>Object</code> will be in the <code>Vector</code>.  Suggestions?</p>
  
  <p>Method:</p>
  
  <pre><code>/**
   * Replace a row in the dataVector.  Convenience method for 
   * getDataVector().set(index, element)
   * @param rowNum the index of the row to replace
   * @param replaceRow the element to be stored at the specified position
   * @return the element previously at the specified position
   * @throws ArrayIndexOutOfBoundsException if the index is out of range
   */
  public Vector setRow(int rowNum, Vector replaceRow) {
    return (Vector)dataVector.set(rowNum, replaceRow);
  }
  </code></pre>
  
  <p>This results in:</p>
  
  <pre><code>warning: [unchecked] unchecked call to set(int,E) as a member of the raw type Vector
  return (Vector)dataVector.set(rowNum, replaceRow);
                               ^
  where E is a type-variable:
  E extends Object declared in class Vector
  1 warning
  </code></pre>