title: Java Collections.sort - help me remove the unchecked warning
body: <pre><code>List&lt;Question&gt; questions = new ArrayList&lt;Question&gt;();
  questions.addAll(getAllQuestions()); //returns a set of Questions
  Collections.sort(questions, new BeanComparator("questionId")); //org.apache.commons.beanutils.BeanComparator
  </code></pre>
  
  <p>Under Java 1.5, the above works fine except that the 'new BeanComparator("questionId")' generates an unchecked warning. I do not like warnings. Is there a way I can provide the BeanComparator a type, or do I have to use <code>@SuppressWarnings("unchecked")</code>?</p>