title: java: warning: iterator is a raw type
body: <p>I don't understand why my code have a warning like this, this is my code:</p>
  <pre><code>protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      
       response.setContentType(&quot;text/html&quot;);  
       PrintWriter out=response.getWriter(); 
      try {
  
               InputStream csvfile = null;
  
               FileItemFactory factory = new DiskFileItemFactory();
  
               ServletFileUpload upload = new ServletFileUpload(factory);
               Map&lt;String, List&lt;FileItem&gt;&gt; file = upload.parseParameterMap(request);
               
               Iterator entries = file.entrySet().iterator();
               while (entries.hasNext()) {
                    Entry thisEntry = (Entry) entries.next();
                    List&lt;FileItem&gt; value = (List) thisEntry.getValue();
                      for (FileItem uploadItem : value) {
                          csvfile = uploadItem.getInputStream();
                        }  // end of for loop
               }//while
  
              InputStreamReader isr = new InputStreamReader(csvfile);
              BufferedReader reader = new BufferedReader(isr);
             
              String text = &quot;&quot;;
              reader.readLine();
  </code></pre>
  <p>I am getting the warning :<code>iterator is a raw type. references to generic type iterator e</code></p>
  <p>How can I resolve this?</p>