When I try to rename the second iterator from "i" to "it", too, IDEA
warns "There is already a local variable it. It will conflict with a
renamedvariable". But the existing and the new "it" do not collide,
because they are only visible within the corresponding loop.

private void test() {
        for (Iterator it = oldVisuals.iterator(); it.hasNext();) {
                Object obj = it.next();
                // some code
        }

        for (Iterator i = subVisuals.iterator(); i.hasNext();) {
                Object obj = i.next();
                // some code
        }
}


Tom
_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to