History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18022
Type: Bug Bug
Status: Open Open
Assignee: Bas Leijdekkers
Reporter: andrew belom
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

'for each' replace with inner class breaks the code

Created: 06 May 08 17:10   Updated: Yesterday 16:12
Component/s: Editor. Intention Actions

Build: 7,757


 Description  « Hide
public class ForEach {
public ForEach() {
Object a = new Object();
Map.Entry arr[] = (Map.Entry[]) a;
for (int i = 0; i < arr.length; i++) { System.out.println(arr[i]); }
}
}

if i apply the 'replace for with for each' i get

for (Entry anArr : arr) { System.out.println(anArr); }

instead of for (Map.Entry anArr : arr) {



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.