title: JTable getColumnClass warning
body: <p>I have tried searching, but no one seems to have the answer.</p>
  
  <p>I use a JTable in order to have a table with people listed and I wanted to put an ImageIcon so  from what I have read I have to override the default method in order to return an icon and not String.</p>
  
  <p>This is what I use:</p>
  
  <pre><code>public Class getColumnClass(int column)   
  {   
      return getValueAt(0, column).getClass();   
  }
  </code></pre>
  
  <p>But eclipse underlines the return type "Class" in yellow and gives me this warning:</p>
  
  <blockquote>
    <p>Type safety: The return type Class for getColumnClass(int) from the
    type new JTable(){} needs unchecked conversion to conform to Class
    from the type JTable</p>
  </blockquote>
  
  <p>And its only suggestion is to suppress it. I am not sure if I even get the warning properly, can someone try to explain me what exactly does it mean and help me find a good solution which won't be to suppress it?</p>