void () { doTest("class Pointless {" + " Integer p = new Integer(1);" + " public void test(Object a) {" + " if (a instanceof Integer /*Pattern variable 'p' hides field in class 'Pointless'*/p/**/) {" + " System.out.print(\"a is an integer (\" + p + ')');" + " } else if (a instanceof String s) {" + " System.out.println(\" a is a string (\" + s + ')');" + " }" + " }" + "}"); }