[IG] Field accessed repeadedly in method
Hello, Dave!
Can you add option "Ignore private field variables"?
Thanks!
--
Alexey Efimov, Java Developer
Tops-BI
http://www.topsbi.ru
Please sign in to leave a comment.
Hello, Dave!
Can you add option "Ignore private field variables"?
Thanks!
--
Alexey Efimov, Java Developer
Tops-BI
http://www.topsbi.ru
Please sign in to leave a comment.
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
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