View Javadoc
1   package org.checkstyle.suppressionxpathfilter.unnecessarynullcheckwithinstanceof;
2   
3   public class InputXpathUnnecessaryNullCheckWithInstanceOfAnonymous {
4       private final Runnable runnable = new Runnable() {
5           @Override
6           public void run() {
7               Object obj = "test";
8               if (obj != null && obj instanceof String) { // warn
9                   String s = (String) obj;
10              }
11          }
12      };
13  }