Bug 78057 - [dom] Can IBinding#getKey() return null?
Summary: [dom] Can IBinding#getKey() return null?
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-08 05:43 EST by Markus Keller CLA
Modified: 2004-12-14 13:34 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.