Have you tried any "automated code review" programs, like FindBugs or PMD? They might be able to detect that kind of thing.

List of tools for static code analysis - Wikipedia, the free encyclopedia