Community
Participate
Working Groups
This is about making the get/set<Value|Set|List|Map> methods of properties non-final in order to allow subclasses to return default values in case the source object is null. One use case which requires this functionality is bug 306611.
After the discussion with Matthew in bug 306611, only the getter methods will be made non-final for now since for the setter it makes less sense.
Created attachment 184650 [details] patch which makes the getter non-final Matthew, +1?
Let's add javadoc comments to the get<Value|List|Set|Map> methods to clarify: * What the method implementation does (checks for null and delegates to doGet<Value|List|Set|Map>) * Under what circumstances subclasses should override the default implementation (give alternative handling of nulls as an example). +1 once the above are addressed.
Created attachment 184661 [details] added the JavaDoc proposed by Matthew
Released to HEAD > 20101206
Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=306611#c15 .
Hi Ovidio, I've talked to Boris, and could you please revert this fix. You can commit it again when 3.7 M4 is declared. PW
The changes of this bug are reverted.
Ovidio, you can push these changes again.
Thanks for the reminder, Matthew. Re-released to HEAD > 20101223