diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/accounts/AccountIT.java b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/accounts/AccountIT.java index e34223e8ab..2afc8c4b8b 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/accounts/AccountIT.java +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/accounts/AccountIT.java @@ -872,9 +872,9 @@ public class AccountIT extends AbstractDaemonTest { return new String(out.toByteArray(), UTF_8); } - @SuppressWarnings({"unchecked", "rawtypes"}) - private static void assertIteratorSize(int size, Iterator it) { - assertThat(ImmutableList.copyOf(it)).hasSize(size); + private static void assertIteratorSize(int size, Iterator it) { + List lst = ImmutableList.copyOf(it); + assertThat(lst).hasSize(size); } private static void assertKeyMapContains(TestKey expected, Map actualMap) {