Having considered the official Java tutorial and some threads from the past, few things remain unclear and so I'd be glad if someone would explain it to be in plain words.
Class valueClass = agp.getValueClass(); ///the method's return type is Class<?>
if(Double.class.equals(valueClass))
{
...
}
With that my IDE shows me a raw type warning. I've changed the first line to
Class<?> valueClass = agp.getValueClass();
What other reasonable alternatives do I have and what effects do they bring?
Thank you in advance.