ankidroid / ankidroid/Anki-Android

API: is `DEFAULT_PROJECTION` intended to be mutable?

Đang mở
#12,346 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
API Keep Open
Ngôn ngữ chính
Kotlin
Star
11.8k
Fork
2.9k
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
171

Mô tả

API Query - probably for new issue: is `DEFAULT_PROJECTION` intended to be mutable? We have a few of these and this appears to be an oversight. Should this be a get-only property returning a clone of the array?

It was a `String[]` before - so also mutable values, but not size.

_Originally posted by @david-allison in https://github.com/ankidroid/Anki-Android/pull/12334#discussion_r965144637_

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

Mở hướng dẫn đóng góp

Đá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.