I have an object named Node<Value> . NodeInternal<Value> and NodeLeaf<Value> objects inherit from Node<Value> .
I am trying to check what type of object is used with instanceof as follows:
if (node instanceof NodeInternal) . I did not add <Value> because at runtime the type is discarded. Without <Value> on NodeInternal , however, I get the following warning: NodeInternal is a raw type. References to generic type NodeInternal<Value> should be parameterized NodeInternal is a raw type. References to generic type NodeInternal<Value> should be parameterized .
What should I do in this case?
source share