RE: NetBeans `Convert to for (Iterator...) {}' suggestion

2022-11-29 Thread John
22 17:51To: JohnCc: NetBeans Mailing ListSubject: Re: NetBeans `Convert to for (Iterator...) {}' suggestion I agree that this isn’t usually a good suggestion.  It is available as a refactoring for when you might need an iterator, but by no means should the IDE “warn” about it.  I think that is the c

Re: NetBeans `Convert to for (Iterator...) {}' suggestion

2022-11-28 Thread Michael Bien
Hi John, suggestions which are only active at the current line where your cursor is, don't necessary produce better code, they are just there to transform parts of it in case you want to change something. Internally they are hints of a kind called actions. The doc describes it well: "The hi

Re: NetBeans `Convert to for (Iterator...) {}' suggestion

2022-11-28 Thread Scott Palmer
I agree that this isn’t usually a good suggestion. It is available as a refactoring for when you might need an iterator, but by no means should the IDE “warn” about it. I think that is the current behaviour though. The line is not marked with a hint lightbulb unless I put the cursor on that l