Replace for loop with for-each.
The for-each loop, introduced in release 1.5, gets rid of the clutter
and the opportunity for error by hiding the iterator or index variable
completely. Note that there is no performance penalty for using the
for-each loop. In fact, it may offer a slight performance advantage
over an ordinary for loop in some circumstances, as it computes the
limit of the array index only once.
Test: Build and install Nearby module to check, atest NearbyUnitTests
BUG: 216079944
Change-Id: Icaa109c720807b94c4d955a604544fa4858dd360
1 file changed
tree: 29cc22c33187bc6d4215deffcd4c2e88a624dcfb
- nearby/