Because FindBugs doesn't know if the map contains "Bob" or not, it will flagline 5 as a possible null pointer exception.
因为FindBugs不知道map是否包含“bob”,所以它将第5行标记为可能null指针异常。
2
One way would be to create an array of booleans, one for each line of the original method, and add code that sets the appropriate flag as each line is executed.