Community
Participate
Working Groups
Source based, around v_741. Investiging bug 154984, I came accross line 462 of JavaModelManager that tests the result of a call to ThreadLocal#get against null. I believe this is superfluous given the documented behavior of that method. (Please correct me if I am wrong.)
Sorry, ThreadLocal#get() may return null indeed. 'Creates and initializes the copy if this is the first time the thread has called this method' does not explicitly exclude the source of the copy to be null in fact - even if it is misleading.