title: Eclipse warning - Class is a raw type. References to generic type Class<T> should be parameterized
body: <pre><code>import java.util.ArrayList;
  
  public class ListOfClasses
  {
  
      private ArrayList&lt;Class&gt; classes;
  
      public ArrayList&lt;Class&gt; getClasses() 
      {
          return classes;
      }
  
      public void setClasses(ArrayList&lt;Class&gt; classes) 
      {
          this.classes = classes;
      }
  }
  </code></pre>
  
  <p>For this, I get the following warning in eclipse - </p>
  
  <blockquote>
    <p>Class is a raw type. References to generic type Class should be
    parameterized</p>
  </blockquote>
  
  <p>This was asked in an <a href="https://stackoverflow.com/questions/1372595/class-is-a-raw-type-references-to-generic-type-classt-should-be-parameterized">earlier question</a>, but the answer was specific to the Spring Framework. But I am getting this warning even without having anything to do with Spring. So what is the problem?</p>