summaryrefslogtreecommitdiffstats
path: root/tests/ImfTest/src/com/android/imftest/samples
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2015-04-22 17:07:21 -0700
committerChet Haase <chet@google.com>2015-04-22 17:07:21 -0700
commit5b3edbde20b446ecbfebe5d6ad0dcd735473ac75 (patch)
treee06000c6bdda394aa3920f1782ffcd6373fabaeb /tests/ImfTest/src/com/android/imftest/samples
parentf14c5350419aa5eac8a81a4cdbca5bda4b449315 (diff)
downloadframeworks_base-5b3edbde20b446ecbfebe5d6ad0dcd735473ac75.zip
frameworks_base-5b3edbde20b446ecbfebe5d6ad0dcd735473ac75.tar.gz
frameworks_base-5b3edbde20b446ecbfebe5d6ad0dcd735473ac75.tar.bz2
Add annotation to Rect.intersect()
Failing to check the return result from intersect() can cause artifacts because the developer may assume that the rect has been changed to the intersection. In particular, when the two rects do not overlap, there is no change made to the source rect. Instead, the method simply returns false. When developers do not check that return value, they may use the source rect and get undefined results. This change adds the @CheckResults annotation that will cause a Lint warning when developers call this method without checking the return value. Change-Id: I476367d74e712038c248c2379fb124734298fcc1
Diffstat (limited to 'tests/ImfTest/src/com/android/imftest/samples')
0 files changed, 0 insertions, 0 deletions