Don't waste memory creating new Boolean objects
Creating a new Boolean is wasteful since there's already a static Boolean.TRUE and Boolean.FALSE. Using Boolean.valueOf will return one of those static objects and reduce memory usage a bit. Change-Id: Id497f951c8a894ec03ac6c3181e6055b56db9db4
Loading
Please register or sign in to comment