Replace usages where the Long is immediately unboxed or thrown away with Long.parseLong(). In TaskRecord.java, I also fixed up similar uses of {Boolean,Integer}.valueOf() Tested: built frameworks/base successfully. Bug: 28289401 (cherry picked from commit 4bd017d6a5437f153b2b0a149a5dde0b85bf6907) Change-Id: Icfa4708946e774f4a1bacf185c3fd11a7087017e