title: Type safety: Unchecked cast from List to List<String>
body: <p>I have this method where I cast the results to (List ) , but my eclipse is still complaining !  <strong>Type safety: Unchecked cast from List to List</strong></p>
  
  <pre><code>@Override
  public List&lt;String&gt; getDevices(Long productId) {
  
          String queryString = "SELECT op.name FROM t_operation op WHERE op.discriminator = 'ANDROID' and PRODUCT =:productId ";
  
          try {
              Query query = getEntityManager().createQuery(queryString);
              query.setParameter("productId", productId);
  
              return (List&lt;String&gt; ) query.getResultList();
  
  
          } catch (RuntimeException re) {         
              throw re;
          }
  
      }
  </code></pre>