You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple empty extension functions are used for overcoming lint errors, which are potential sources of crashes. Some of them are linked here: [1][2][3]
Observed behavior:
Empty extension functions with the below definition occur multiple times.
private fun <E> List<E>.add() {
}
Expected behavior:
Adding these empty extension functions will only overcome the lint errors, but keeping it blank will lead to crashes upon its usages. The variables on which add() function is used need to be changed from immutable data types to mutable ones. Then the built-in addAll() function should be used on those mutable data.
Summary:
Multiple empty extension functions are used for overcoming lint errors, which are potential sources of crashes. Some of them are linked here: [1] [2] [3]
Observed behavior:
Empty extension functions with the below definition occur multiple times.
Expected behavior:
Adding these empty extension functions will only overcome the lint errors, but keeping it blank will lead to crashes upon its usages. The variables on which add() function is used need to be changed from immutable data types to mutable ones. Then the built-in
addAll()
function should be used on those mutable data.Example: Usage in mifos-mobile.
The text was updated successfully, but these errors were encountered: