From: Kieran K. <kie...@ma...> - 2005-08-26 14:37:51
|
Hi All, I notice that 'boolean' is favored over 'Boolean' for methods returning binding values in Project Wonder. Up to now I have been using Boolean since I like using the lazy initialization design pattern in stateless subcomponents.... and I always set my Boolean iVars to the static fields Boolean.TRUE or Boolean.FALSE to avoid creating a new object. Is there a performance reason why I should adopt primitive 'boolean' instead of 'Boolean' considering that I always have my iVars refer to the Boolean static instances or TRUE or FALSE, or is it a case of just consistency and use one or the other? Regards, Kieran |