I have got this warning: non-varargs call of varargs method with inexact argument type for last parameter;
<p>this is my sample code where i am getting the warning.</p>

<pre><code> try
        {
            Class aClass = Class.forName(impl);
            Method method = aClass.getMethod("getInstance", null);
            item = (PreferenceItem) method.invoke(null, null);
        }
</code></pre>

<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>

<p>please help me to solve this problem</p>
