mbien commented on issue #4604:
URL: https://github.com/apache/netbeans/issues/4604#issuecomment-1292766426

   The deprecation warnings come directly from javac 
([StandardJavacWarnings](https://github.com/apache/netbeans/blob/c084119009d2e0f736f225d706bc1827af283501/java/java.hints/src/org/netbeans/modules/java/hints/StandardJavacWarnings.java)).
 The current implementation won't work as code inspection since the hint isn't 
doing anything (it basically only sets compiler flags).
   
   During the inspection, 
[BatchSearch](https://github.com/apache/netbeans/blob/4ae01ea70f4530443343beee3292e880a74099bd/java/spi.java.hints/src/org/netbeans/modules/java/hints/spiimpl/batch/BatchSearch.java#L603-L607)
 can't find anything since the pattern is null.
   
   This applies not only for deprecations but to all other standard compiler 
warnings like raw types etc.
   
   It would be fairly easy to implement a code inspection for finding usage of 
deprecated methods, but this wouldn't solve the other javac warnings. Would be 
great to find a way to fix this properly. 
   
   @jlahoda any hints? ;)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
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