ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Seven Low-Cost Ways to Improve Legacy Code
Subject:   Replace Listeners with Weak Listeners
Date:   2004-05-07 15:09:21
From:   Robert Simmons Jr. (Kraythe)
Response to: Replace Listeners with Weak Listeners

True. That would not be a good thing. However, I am not a fan of anonymous classes as you read later in the article. I counsider it to be much better to refactor those into inner classes at the very least.


Second of all, creating objects that you have no direct reference to is an iffy thing at best. This type of code is very prone to memory leaks.


1 to 1 of 1
  1. Replace Listeners with Weak Listeners
    2004-05-11 08:48:20  ipreuss [View]

1 to 1 of 1