From 0b50b0fcfdcd7c140ad7d2231cef332736663e8f Mon Sep 17 00:00:00 2001 From: DaVinci9196 Date: Wed, 4 Sep 2024 20:03:05 +0800 Subject: [PATCH] Misspelling of word in SafeParcelProcessor causes compilation error --- .../main/kotlin/org/microg/safeparcel/SafeParcelProcessor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/safe-parcel-processor/src/main/kotlin/org/microg/safeparcel/SafeParcelProcessor.kt b/safe-parcel-processor/src/main/kotlin/org/microg/safeparcel/SafeParcelProcessor.kt index ed7870625e..58f23b3d3a 100644 --- a/safe-parcel-processor/src/main/kotlin/org/microg/safeparcel/SafeParcelProcessor.kt +++ b/safe-parcel-processor/src/main/kotlin/org/microg/safeparcel/SafeParcelProcessor.kt @@ -337,7 +337,7 @@ class FieldInfo(val clazz: ClassInfo, val fieldElement: VariableElement) { "int[]" -> "$variableName = $SafeParcelReader.readIntArray(parcel, header)" "java.util.List", "java.util.ArrayList" -> when { !useValueParcel -> "$variableName = $SafeParcelReader.readStringList(parcel, header)" - else -> "$variableName = $SafeParcelReader.readList(parcel, header, String.class.getClassloader())" + else -> "$variableName = $SafeParcelReader.readList(parcel, header, String.class.getClassLoader())" } // "java.util.List", "java.util.ArrayList" -> "$variableName = $SafeParcelReader.readIntegerList(parcel, header)" // "java.util.List", "java.util.ArrayList" -> "$variableName = $SafeParcelReader.readBooleanList(parcel, header)" @@ -347,7 +347,7 @@ class FieldInfo(val clazz: ClassInfo, val fieldElement: VariableElement) { else -> when { isList && isParcelable && !useValueParcel -> "$variableName = $SafeParcelReader.readParcelableList(parcel, header, $listItemType.CREATOR)" isArray && isParcelable -> "$variableName = $SafeParcelReader.readParcelableArray(parcel, header, $listItemType.CREATOR)" - isList -> "$variableName = $SafeParcelReader.readList(parcel, header, $listItemType.class.getClassloader())" + isList -> "$variableName = $SafeParcelReader.readList(parcel, header, $listItemType.class.getClassLoader())" isParcelable -> "$variableName = $SafeParcelReader.readParcelable(parcel, header, $type.CREATOR)" !isList && isIInterface -> "$variableName = $type.Stub.asInterface($SafeParcelReader.readBinder(parcel, header))" else -> throw UnsupportedOperationException("Field $name in ${clazz.fullName} has unsupported type $type.")