If not NULL, increment the line counter.
如果不是NULL,则增加行计数器。
In this example, if the Map on line 1 does not contain the person named "Bob," a null pointer exception will result on line 5 when the person is asked for his name.
在这个例子中,如果第1行的Map不包括一个名为“bob”的人,那么在第5行询问person的名字时就会出现null指针异常。
If this method returns void, no change is needed, but if it returns DataObject, change the last line from return null; to return input;.
如果这个方法返回void,则不需要任何更改;如果返回DataObject,则将最后一行从return null;更改为return input;。
应用推荐