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