docs: clean up invalid KDoc tags on property and add docs to isEmpty

This commit is contained in:
Rsedp8 2025-05-24 17:58:32 +02:00
parent ef2703b7e2
commit 3bf25889ca

View file

@ -6,29 +6,29 @@ package fr.free.nrw.commons.upload
class Description { class Description {
/** /**
* The language code, e.g., "en" or "fr". * The language code, e.g., "en" or "fr".
* @param languageCode The language code. * @property languageCode The language code.
*/ */
var languageCode: String? = null var languageCode: String? = null
/** /**
* The description text for the item being uploaded. * The description text for the item being uploaded.
* @param descriptionText The description text. * @property descriptionText The description text.
*/ */
var descriptionText: String? = null var descriptionText: String? = null
/** /**
* The index of the language selected in a spinner with [SpinnerLanguagesAdapter]. * The index of the language selected in a spinner with [SpinnerLanguagesAdapter].
* @param selectedLanguageIndex The index of the selected language. * @property selectedLanguageIndex The index of the selected language.
*/ */
var selectedLanguageIndex = -1 var selectedLanguageIndex = -1
/** /**
* Indicates if the description was added manually (by the user or programmatically). * Indicates if the description was added manually (by the user or programmatically).
* @param manuallyAdded Sets to true if the description was manually added by the user.
* @return True if the description was manually added.
*/ */
var isManuallyAdded = false var isManuallyAdded = false
/**
* Returns true if the description text is null or empty.
*/
val isEmpty: Boolean val isEmpty: Boolean
get() = descriptionText == null || descriptionText!!.isEmpty() get() = descriptionText == null || descriptionText!!.isEmpty()