ankidroid / ankidroid/Anki-Android

API: is `DEFAULT_PROJECTION` intended to be mutable?

Open
#12,346 6 comments 0 reactions 0 assignees View on GitHub
API Keep Open
Dominant language
Kotlin
Stars
11.8k
Forks
2.9k
Avg merge
2d 3h
Merged PRs (30d)
171

Description

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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.