This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
NetBeans 8 build 201402150001 Given the following Java code: ObservableList list = assetList.getItems(); // consider some sort of SortedSet<String> or SortedSet<TestSuitAsset> for(int i =0; i < tdrdocs.size(); i++) { TDRDocument assetDoc = tdrdocs.get(i); String assetId = (String) assetDoc.getFieldValue("id"); I am presented with a hint on the for-loop line stating "Use enhanced for loop to iterate over the array" - I'm iterating over a "List" not an array. - When I click the light bulb and pick the poorly named "Convert to for-loop" (it's already a for-loop). It removed the comment, resulting in: ObservableList list = assetList.getItems(); for (TDRDocument assetDoc : tdrdocs) { String assetId = (String) assetDoc.getFieldValue("id");
Fixed by general support implemented as part of issue #239487 and isssue #245348