Bug 468291

Summary: Clarify Javadoc for @Optional
Product: [Eclipse Project] Platform Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: Lars Vogel <Lars.Vogel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel, simon.scholz
Version: 4.5Keywords: Documentation
Target Milestone: 4.5 RC3   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/48613
https://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=ea8704f3ac3f5045369f34dc64ed73e9d450d3de
Whiteboard:

Description Lars Vogel CLA 2015-05-26 06:31:35 EDT
See 

I suggest to add the following to the @Optional Javadoc.

> null is an acceptable value to be set in the context, and it is different
> from a key being removed from the context.  i.e.,
> 
>     context.set(SOMEKEY, null);
> 
> means anybody listening for SOMEKEY will be injected with null.
Comment 2 Eclipse Genie CLA 2015-05-26 06:39:12 EDT
New Gerrit change created: https://git.eclipse.org/r/48613
Comment 4 Lars Vogel CLA 2015-05-27 10:36:08 EDT
.