self()

Karl Wettin <[email protected]> Wed, 29 Jun 2005 02:02:39 +0200
Newsgroups gmane.comp.java.ozone.user
Message-ID <[email protected]>
I'm not quite sure on how much I should use self(). For now I use it  
everywhere. Is that crazy or just about right?


  public void setBank(java.lang.String accountNumber,
         se.snigel.ozone.Bank bank) {
         if ((self().bank != null) &&
                 self().bank.getBankAccounts().containsKey 
(accountNumber)) {
             self().bank.getBankAccounts().remove(accountNumber);
         }

         self().bank = bank;

         if ((bank != null) &&
                 !self().equals(bank.getBankAccounts().get 
(accountNumber))) {
             bank.getBankAccounts().put(accountNumber, self());
         }
     }

-- 

   karl


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click