title: Is it possible to return the Class of a generic type without any warning?
body: <p>The question is pretty simple, take a look at the following code:</p>
  <pre><code>public class ChoiceBox&lt;T&gt; {}
  
  public Class&lt;ChoiceBox&gt; getApplicableClass() {
          return ChoiceBox.class;
  }
  </code></pre>
  <p>In eclipse and maybe other ide, a warning is generated:</p>
  <pre><code>ChoiceBox is a raw type. References to generic type ChoiceBox&lt;T&gt; should be parameterized
  </code></pre>
  <p>So i did change the return type of the getApplicableClass function to:</p>
  <pre><code>public Class&lt;ChoiceBox&lt;?&gt;&gt; getApplicableClass()
  </code></pre>
  <p>But the question now is, how can i return a Class&lt;ChoiceBox&lt;?&gt;&gt; without warning</p>
  <pre><code>public Class&lt;ChoiceBox&lt;?&gt;&gt; getApplicableClass() {
      return ??????????????;
  }
  </code></pre>