title: List<Map> References to generic type Map<K,V> should be parameterized
body: <p>Why I'm Getting this Mark in my Eclipse project? can someone explain me? or give me a fix for it</p>
  
  <ul>
  <li>Map is a raw type. References to generic type Map should be parameterized <BR></li>
  <li>Type safety: The expression of type List needs unchecked conversion to conform to List</li>
  </ul>
  
  <p><code></p>
  
  <pre><code>public Integer getAgenteId(Integer agente) {
  
      try {
          String sql = "SELECT id_agente FROM callcenter.agente WHERE agente = ? ";
          EntityManager em = PersistenceUtil.getEntityManager();
          Query q  = em.createNativeQuery(sql);
          q.setHint(QueryHints.RESULT_TYPE, ResultType.Map);
          List&lt;Map&gt; lm = q.getResultList(); // ECLIPSE MARK HERE
  
          for (Map rs : lm) { // ANOTHER ECLIPSE MARK HERE
  
              return (Integer)rs.get("id_agente");
  
          }
  
          return null;
  
      } catch (Exception e) {
          logger.error("Erro (GetAgenteId) : " + e.getMessage());
          e.printStackTrace();
      }
  
      return null;
  
  }
  </code></pre>
  
  <p></code></p>
  
  <p>Edit: I don't want to supress warning, I want to fix the Warning.</p>