diff options
| author | 2024-03-06 17:41:14 +0000 | |
|---|---|---|
| committer | 2024-03-06 17:41:14 +0000 | |
| commit | 035f5c235c6da679ffa3fdffaedfbdb572b65b4a (patch) | |
| tree | 76aa67a28b76dddffb72ad5e3d770ec8bda63a7c | |
| parent | a66816b4811505a5ac63b41ef77dc895f43bd679 (diff) | |
Remove uses of List.getFirst from GroupedAggregatedLogRecordsTest
Test is failing in some targets with NoSuchMethodError exception on uses
of java.util.List#getFirst.
Fix: 328103184
Test: atest GroupedAggregatedLogRecordsTest
Change-Id: I633b9ef1303d5b397067be896632e39f45c66fd7
| -rw-r--r-- | services/tests/vibrator/src/com/android/server/vibrator/GroupedAggregatedLogRecordsTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/tests/vibrator/src/com/android/server/vibrator/GroupedAggregatedLogRecordsTest.java b/services/tests/vibrator/src/com/android/server/vibrator/GroupedAggregatedLogRecordsTest.java index 038f1db32d18..54ab367df381 100644 --- a/services/tests/vibrator/src/com/android/server/vibrator/GroupedAggregatedLogRecordsTest.java +++ b/services/tests/vibrator/src/com/android/server/vibrator/GroupedAggregatedLogRecordsTest.java @@ -135,7 +135,7 @@ public class GroupedAggregatedLogRecordsTest { AggregatedLogRecord<TestSingleLogRecord> droppedRecord = records.add(createRecord(GROUP_1, KEY_2, createTime++)); assertThat(droppedRecord).isNotNull(); - assertThat(droppedRecord.getLatest()).isEqualTo(mTestRecords.getFirst()); + assertThat(droppedRecord.getLatest()).isEqualTo(mTestRecords.get(0)); dumpRecords(records); assertGroupHeadersWrittenOnce(records, GROUP_1); @@ -155,7 +155,7 @@ public class GroupedAggregatedLogRecordsTest { AggregatedLogRecord<TestSingleLogRecord> droppedRecord = records.add(createRecord(GROUP_1, KEY_1, createTime + AGGREGATION_TIME_LIMIT)); assertThat(droppedRecord).isNotNull(); - assertThat(droppedRecord.getLatest()).isEqualTo(mTestRecords.getFirst()); + assertThat(droppedRecord.getLatest()).isEqualTo(mTestRecords.get(0)); dumpRecords(records); assertGroupHeadersWrittenOnce(records, GROUP_1); |