Skip to content

Commit c47f34c

Browse files
Suppress some SelfAssertion warnings on a couple tests.
PiperOrigin-RevId: 803033489
1 parent e02cf1e commit c47f34c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

java/core/src/test/java/com/google/protobuf/MapForProto2LiteTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ private static <K, V> Map<K, V> newMap(K key1, V value1, K key2, V value2) {
521521
}
522522

523523
@Test
524+
@SuppressWarnings("SelfAssertion") // Just testing that the getters execute and are consistent.
524525
public void testGetMap() {
525526
TestMap.Builder builder = TestMap.newBuilder();
526527
setMapValues(builder);

java/core/src/test/java/com/google/protobuf/MapLiteTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ public void testIterationOrder() throws Exception {
558558
}
559559

560560
@Test
561+
@SuppressWarnings("SelfAssertion") // Just testing that the getters execute and are consistent.
561562
public void testGetMap() {
562563
TestMap.Builder builder = TestMap.newBuilder();
563564
setMapValues(builder);

0 commit comments

Comments
 (0)