Re: "protected" attributes in Component .java files.

From: Janine Sisk (janin..urfly.net)
Date: Tue Jul 03 2007 - 02:44:40 EDT

  • Next message: Ulrich Köster: "Re: Run as WO app?"

    On Jul 2, 2007, at 10:25 PM, Chuck Hill wrote:

    >> that the right thing to do is to leave these protected and write
    >> getter and setter methods for them.
    >
    > Sigh. Well. Not forcefully enough apparently. :-P Make them
    > private and write getter and setter methods for them. Code to the
    > API, not the implementation. ivars should only ever get referenced
    > directly in the constructor or their respective getter and setter
    > methods.

    Ok, ok. I'm not quite as picky as Chuck (did I hear someone say
    anal? :)). That's why he keeps polishing that ruler.... *ow*! :)

    janine



    This archive was generated by hypermail 2.0.0 : Tue Jul 03 2007 - 02:45:24 EDT