Bug 78057

Summary: [dom] Can IBinding#getKey() return null?
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: trivial    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2004-11-08 05:43:28 EST
200411050810

The Javadoc of IBinding#getKey() starts with ...

	/**
	 * Returns the key for this binding.

... and ends with ...

	 * @return the key for this binding, or <code>null</code> if none
	 */

IMO, these two statements are contradictory. Is there any situation left, in
which an IBinding does not have a key? If yes, it would be nice to have this
mentioned explicitly. If not, then the "or <code>null</code> if none" should be
removed to relieve clients from the null-checking burden.
Comment 1 Jerome Lanneluc CLA 2004-11-22 12:43:14 EST
Removed "or <code>null</code> if none" as this can never happen.
Comment 2 Frederic Fusier CLA 2004-12-14 13:34:51 EST
Verified for 3.1 M4 using build I200412140800.