Frameworks/base: Use equals for Integer comparison
Integer == is dangerous, as equal objects may not be identical objects. In fact, MediaFormat.setInteger was creating a new object every time. Change MediaFormat.setInteger and setLong to use valueOf, which may reuse returned objects. Change-Id: Iedcc6003adbf05c0c870aa4b3ada7f181a5b870e
Loading
Please register or sign in to comment