mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Kotlinc 2.4 language version update pre-work.
Fix impossible is checks that are guaranteed to always returns false. PiperOrigin-RevId: 958436856
This commit is contained in:
parent
0e436a47e8
commit
0c9ba64990
3 changed files with 3 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ class DslListTest {
|
|||
@Test
|
||||
fun dslListIsNotMutable() {
|
||||
val dslList = DslList<Int, DummyProxy>(mutableListOf(1, 2, 3))
|
||||
assertThat(dslList is MutableList<*>).isFalse()
|
||||
assertThat((dslList as Any) is MutableList<*>).isFalse()
|
||||
}
|
||||
|
||||
@Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN", "UNCHECKED_CAST")
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class DslMapTest {
|
|||
@Test
|
||||
fun dslMapIsNotMutable() {
|
||||
val dslMap = DslMap<Int, Int, DummyProxy>(mutableMapOf(1 to -1))
|
||||
assertThat(dslMap is MutableMap<*, *>).isFalse()
|
||||
assertThat((dslMap as Any) is MutableMap<*, *>).isFalse()
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ class ExtensionListTest {
|
|||
TestProto.repeatedExtension,
|
||||
mutableListOf(1, 2, 3),
|
||||
)
|
||||
assertThat(extensionList is MutableList<*>).isFalse()
|
||||
assertThat((extensionList as Any) is MutableList<*>).isFalse()
|
||||
}
|
||||
|
||||
@Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN", "UNCHECKED_CAST")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue