Reports on any duplicate conditions among different branches of an if statement. While it may rarely be the desired semantics, duplicate conditions usually represent programmer oversight.

Use the checkbox below to let this inspection ignore conditions which may produce side effects. Unchecking this checkbox may lead to some false-positives, e.g. when the same method call returns different values on subsequent invocations.