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 containing method calls. Some method calls may return a different value on an identical invocation.