mbien commented on PR #8194: URL: https://github.com/apache/netbeans/pull/8194#issuecomment-2614526217
> Didn't know about Jackpot rules! I did these edits manually, in particular since there were a lot of small variations in how loading was done or how simplifications could be made. yeah I didn't mention it earlier for that reason. But [jackpot rules](https://netbeans.apache.org/front/main/jackpot/HintsFileFormat/) can be quite useful sometimes and I feel not enough know about them - so I make sure to point that out when the opportunity arises ;) They could be also put into the meta-inf of a module and used to help with migration third party code too. For personal use, they can be put into [conf/rules](https://github.com/mbien/jackpot-inspections?tab=readme-ov-file#collection-of-jackpot-code-inspection--refactoring--hint-files). I have [a bunch of them](https://github.com/mbien/jackpot-inspections) active most of the time. for example try putting this into a hint file in conf/rules and open `profiler/profiler.heapwalker/src/org/netbeans/modules/profiler/heapwalk/model/BrowserUtils.java` pre-refactoring: ```java new javax.swing.ImageIcon(org.openide.util.ImageUtilities.mergeImages($a.getImage(), $b.getImage(), $c, $d)) => org.openide.util.ImageUtilities.icon2ImageIcon(org.openide.util.ImageUtilities.mergeIcons($a, $b, $c, $d)) ;; ``` -- 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
