Findbugs 给出了 “Null pointer dereference of System.out”,为什么?
我正在使用Java 1.7,Eclipse 3.7和市场上的FindBugs插件。这个例子和天堂一样好:
class Application
{
public static void main( String[] args )
{
System.out.println( "Bla" );
}
}
此消息在过去不存在,内部实现始终在系统中:
public final static PrintStream out = null;
所以Findbugs是对的,但是现在发生了什么变化吗?