Reports comparisons with String.indexOf() expressions such as String.indexOf(c) > 0, which can be replaced with a call to the String.contains() method.

This inspection only reports if the language level of the project or module is five or higher.