title: I have got this warning: non-varargs call of varargs method with inexact argument type for last parameter;
body: <p>This is my sample code where i am getting the warning.</p>
  
  <pre><code>Class aClass = Class.forName(impl);
  Method method = aClass.getMethod("getInstance", null);
  item = (PreferenceItem) method.invoke(null, null);
  </code></pre>
  
  <p>The warning:</p>
  
  <blockquote>
    <p>warning: non-varargs call of varargs method with inexact argument type for last parameter;
    cast to java.lang.Class for a varargs call
    cast to java.lang.Class[] for a non-varargs call and to suppress this warning
       Method method = aClass.getMethod("getInstance", null);</p>
  </blockquote>
  
  <p>please help me solve this problem</p>