On Wed, 14 Jul 2021 at 23:34, Kenneth Fogel <[email protected]> wrote:
> I was surprised to discover these issues. Generics have been in Java since 
> 2004 but it appears that much of the NB code remains pre-generic, hence the 
> rawtypes warning. Technically this is just an annoyance because generics are 
> a compile time trick so failing to use generic-style syntax likely has little 
> effect on the compiled code. It can obscure code that calls on a data 
> structure with different arguments when it should not. Use <Object> if you 
> need this functionality otherwise declare the types and get rid of these 
> warnings.

This is somewhat hiding the complexity that adding generics is an API
change though, and adding them can certainly cause issues.   If you
search closed PRs for warnings you'll see a bunch of stuff Brad and
others have done to remove rawtype warnings where the changes aren't
public.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to