'Type 'org.primefaces.model.TreeNode' does not have type parameters

When I'm trying the example of the Primefaces showcase, I faces this error:

Type 'org.primefaces.model.TreeNode' does not have type parameters

when trying to declare the treenode: private TreeNode<Document> root;

I know I can remove <Document> as error suggests, but how it worked in the showcase?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source