How to fix unchecked call warning in Java?
<p>Here is the code I have written?</p>

<pre><code>Set keys = map.keySet();
SortedSet s = new TreeSet(keys);
</code></pre>

<p>The warning I'm getting is:</p>

<pre><code>warning: [unchecked] unchecked call to TreeSet(java.util.Collection&lt;? extends E&gt;) as a
         member of the raw type java.util.TreeSet
</code></pre>

<p>How do I get rid of the compiler warning?</p>
