2 comments
Comment actions Permalink


I'm afraid I don't understand this. The point of this inspection is performance, as caching repeatedly-accessed fields as locals can be a slight performance win in certain edge cases. Why would the scope of the field make any difference?

--Dave Griffith

0
Comment actions Permalink

Hello, Dave!
You wrote on Thu, 12 Aug 2004 21:32:10 +0400 (MSD):

DG> I'm afraid I don't understand this. The point of this inspection is
DG> performance, as caching repeatedly-accessed fields as locals can be
DG> a slight performance win in certain edge cases. Why would the scope
DG> of the field make any difference?

Maybe is troube in design.. but i have inner class:

The userCache is local not final variable (it not final, becouse object is
Serializable and i need hande initialization in readObject).

Thanks!
--
Alexey Efimov, Java Developer
Tops-BI
http://www.topsbi.ru


0

Please sign in to leave a comment.