You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "asbachb (via GitHub)" <gi...@apache.org> on 2023/05/14 00:24:41 UTC
[GitHub] [netbeans] asbachb commented on issue #5845: @PostConstruct and @PreDestroy method reported as unused elements
asbachb commented on issue #5845:
URL: https://github.com/apache/netbeans/issues/5845#issuecomment-1546775979
Could reproduce this issue. Hint is generated here: https://github.com/apache/netbeans/blob/18-rc3/java/java.hints/src/org/netbeans/modules/java/hints/bugs/Unused.java#L50
Actually I don't see a possibility to prevents this tbh.
As `UnusedDetector` is part of `Java Editor Base` the hint is correct. I don't think an exclusion for Jakarta EE relevant stuff should be added here.
Maybe there should a `HintRevokeProvider` which is able to revoke hints. So the Jakarta EE module could provide an implementation which removes that hint as it's called from container.
Any opinions about that solution?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists