title: How to avoid unchecked-conversion-warning in Java, if you use legacy libraries?
body: <p>I like the generics-feature in java and use it often. But I have a problem, if I use libraries that aren't yet aware of generics. An example are servlets. If you use <code>ServletRequest.getParameterMap()</code> the result will be a raw map, but it includes only <code>String</code> as keys and <code>String[]</code> as values. So I want to assign it to a <code>Map&lt;String, String[]&gt;</code>. But for this assignment I get an warning. How can I avoid this warning with the language, not by simply suppressing the warning with the <code>@SuppressWarnings</code> annotation.</p>