ankidroid / ankidroid/Anki-Android-Backend

Lists should be exposed to Kotlin as `List`, not `MutableList`

Ouverte
#334 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Kotlin
Étoiles
91
Forks
54
Merge moyen
1 j 36 min
PR mergées (30 j)
12

Description

Backend Codegen is problematic: it exposes a `java.util.List`, but this is actually a `com.google.protobuf.Internal.ProtobufList`. `ProtobufList` throws on mutation

> Extends List to add the capability to make the list immutable and inspect if it is modifiable.

https://protobuf.dev/reference/java/api-docs/com/google/protobuf/Internal.ProtobufList

Reported in: https://github.com/ankidroid/Anki-Android/pull/14948

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.