public class NullPointerChecker { public void checkNull(String str) { if (str.equals("detective")) { } else { } } public static void main(String[] args) { NullPointerChecker checker = new NullPointerChecker(); checker.checkNull(null); } } <configuration> <rules> <rule> <type>nullPointer</type> </rule> </rules> </configuration>


上一篇:
下一篇:
切换中文