Fix build failure with Bazel 0.5rc3.
both method assertThat(Iterable<?>) in Truth and method <T>assertThat(T) in Truth match where T is a type-variable: T extends Comparable<?> declared in method <T>assertThat(T) Change-Id: I8a938ace1917d867efd59c6e43ecaf8a7998dafc
This commit is contained in:
parent
2935175117
commit
cb074f917f
@ -1001,9 +1001,9 @@ public class AccountIT extends AbstractDaemonTest {
|
|||||||
return new String(out.toByteArray(), UTF_8);
|
return new String(out.toByteArray(), UTF_8);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings({"unchecked", "rawtypes"})
|
private static void assertIteratorSize(int size, Iterator<?> it) {
|
||||||
private static void assertIteratorSize(int size, Iterator it) {
|
List<?> lst = ImmutableList.copyOf(it);
|
||||||
assertThat(ImmutableList.copyOf(it)).hasSize(size);
|
assertThat(lst).hasSize(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void assertKeyMapContains(TestKey expected, Map<String, GpgKeyInfo> actualMap) {
|
private static void assertKeyMapContains(TestKey expected, Map<String, GpgKeyInfo> actualMap) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user