Summary: | Clarify ICompilationUnit#getOwner() javadoc | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Min Idzelis <min123> | ||||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | amj87.iitr, daniel_megert, Olivier_Thomann, srikanth_sankaran | ||||||
Version: | 3.6 | ||||||||
Target Milestone: | 3.6 M4 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows XP | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Min Idzelis
2009-10-29 13:57:53 EDT
Agree, could be clarified. Created attachment 151872 [details]
Proposed fix
Would this make it clearer ?
I'm still confused by the text. What about: @return <tt>null</tt> if this <code>ICompilationUnit</code> is the primary working copy, or this <code>ICompilationUnit</code> is not a working copy, otherwise the <code>WorkingCopyOwner</code>. In the proposed text, it seems that null can have two meanings if it is a working copy. Honestly, a new API method named isPrimaryWorkingCopy() seems like a good addition. It would return true if it is a working copy AND primary, false otherwise. (In reply to comment #4) > Honestly, a new API method named isPrimaryWorkingCopy() seems like a good > addition. It would return true if it is a working copy AND primary, false > otherwise. I opened bug 294804 for this. Created attachment 151940 [details]
Proposed fix
Here is the new patch based on last proposal.
Released for 3.6M4. Verified for 3.6M4. |