A bit of clarification: an anonymous inner class can only access final
local variables in the enclosing
method, but has access to
all of the enclosing class's member variables.
As far as the article quote, I don't think you'll find many people who would agree. Most people feel that anonymous inner classes are absolutely perfect for
short listener classes. If you need a listener to do a lot of complicated stuff,
you should consider either making the listener its own top-level class, or use an anonymous listener that just delegates to methods in the enclosing class.
You can't believe everything you read