commit | 3a2ef79ba0b40e49e18cc7265996b820eb70b801 | [log] [tgz] |
---|---|---|
author | Tobias Thierer <tobiast@google.com> | Wed Aug 07 17:58:36 2019 +0100 |
committer | Tobias Thierer <tobiast@google.com> | Wed Aug 07 20:00:50 2019 +0000 |
tree | 21f9ecc71d21ad3e7f5cbe12026e45fe422e520e | |
parent | db077d2697a2ccc20b909939af4b6186e358c82c [diff] |
ComparatorTest: Tweak. This test was using static final arrays which were not supposed to be modified by a test method. This CL: - replaces them with unmodifiable Lists, so that accidental modification (such as in bug 139015474) is noticed. - makes them nonstatic, so that no heap is retained after the instance of ComparatorTest is garbage collected. Bug: 139015474 Test: atest CtsLibcoreTestCases:libcore.java.util.ComparatorTest Change-Id: I941d16cf8e487eaede629079e846f96d9e859b7c