View Javadoc
1   package org.checkstyle.suppressionxpathfilter.unnecessarynullcheckwithinstanceof;
2   
3   public class InputXpathUnnecessaryNullCheckWithInstanceOf {
4       public void methodWithUnnecessaryNullCheck1(Object obj) {
5           if (obj != null && obj instanceof String) { // warn
6               String str = (String) obj;
7           }
8       }
9   }