Project: JDT
Bug 256574 [package explorer] Possibly broken code in PackageExplorerContentProvider.findAddedElement(IJavaElementDelta)
Reported: 2008-11-26 04:25:47 | Status: resolved fixed

I20081125-0840. While doing the dead-code analysis I found this code in org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.findAddedElement(IJavaElementDelta): for (int i= 0; i < affectedChildren.length; i++) return findAddedElement(affectedChildren[i]); Obviously the loop is either useless as it will at most handle affectedChildren[0] or it is broken.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java