ankidroid / ankidroid/Anki-Android-Backend

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

Đang mở
#334 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Kotlin
Star
91
Fork
54
Merge trung bình
1 ngày 36 phút
Pull request đã merge (30 ngày)
12

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.