Skip to content

Commit

Permalink
Removed redundant constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Jan 16, 2024
1 parent 1d3f631 commit 398ff29
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@ package org.odk.collect.android.formhierarchy

import org.javarosa.core.model.FormIndex

data class HierarchyItem(
data class HierarchyItem @JvmOverloads constructor(
val formIndex: FormIndex,
val hierarchyItemType: HierarchyItemType,
val primaryText: CharSequence,
val secondaryText: String?
) {
constructor(
formIndex: FormIndex,
hierarchyItemType: HierarchyItemType,
primaryText: CharSequence
) : this(formIndex, hierarchyItemType, primaryText, null)
}
val secondaryText: String? = null
)

enum class HierarchyItemType(val id: Int) {
QUESTION(0), VISIBLE_GROUP(1), REPEATABLE_GROUP(2), REPEAT_INSTANCE(3)
Expand Down

0 comments on commit 398ff29

Please sign in to comment.