summaryrefslogtreecommitdiff
path: root/tools/xmlpersistence/src
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2022-06-24 11:36:41 -0700
committer Colin Cross <ccross@android.com> 2022-08-03 14:27:45 -0700
commit64acfee25d5d38d92267238a7847cccfccd2e829 (patch)
treeb0952cb8f9863f14c05c5b56e3670a5e11a4f3f7 /tools/xmlpersistence/src
parent84ce5affa7161f765f6c1b7bceb52589930c3a12 (diff)
Fix more kotlin 1.7.0 errors
Fix "'when' expression must be exhaustive" and UNEXPECTED_SAFE_CALL errors. Bug: 216136346 Test: m checkbuild Change-Id: I2c1b1f7581426496f31198896c4ff3bd9abf2941
Diffstat (limited to 'tools/xmlpersistence/src')
-rw-r--r--tools/xmlpersistence/src/main/kotlin/Generator.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/xmlpersistence/src/main/kotlin/Generator.kt b/tools/xmlpersistence/src/main/kotlin/Generator.kt
index b2c5f4ac767b..8e62388c860f 100644
--- a/tools/xmlpersistence/src/main/kotlin/Generator.kt
+++ b/tools/xmlpersistence/src/main/kotlin/Generator.kt
@@ -149,6 +149,7 @@ private val ClassFieldInfo.allClassFields: List<ClassFieldInfo>
when (field) {
is ClassFieldInfo -> this += field.allClassFields
is ListFieldInfo -> this += field.element.allClassFields
+ else -> {}
}
}
}