The code snippet below causes this warning in NetBeans 6.9.
[rawtypes] found raw type: org.openide.nodes.PropertySupport.Reflection
missing type parameters for generic class org.openide.nodes.PropertySupport.Reflection<T>
Property dataProp = new PropertySupport.Reflection(t, dataStore.getFloat3DClass(),
workingData);
/**
* Gets the Class object associated with the primitive 3d float array (i.e., float[][][]).
*
* @return the Class object.
*/
public Class<?> getFloat3DClass()
{
if (class3DFloat == null)
{
try
{
class3DFloat = Class.forName("[[[F");
}
catch (ClassNotFoundException ex)
{
Exceptions.printStackTrace(ex);
}
}
return class3DFloat;
}
At runtime getFloat3DClass()
returns a Class
object whose value is class float[][][]
. How do I specify this at design time and avoid this warning?