From 6b13b8909a302b0f0f2155b81b83cd5ab4d7a046 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 19 Oct 2017 17:17:27 +0200 Subject: Code style fixes --- src/main/kotlin/pl/treksoft/kvision/form/AbstractTextInput.kt | 1 - src/main/kotlin/pl/treksoft/kvision/form/Text.kt | 2 +- src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt | 3 ++- src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main') diff --git a/src/main/kotlin/pl/treksoft/kvision/form/AbstractTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/AbstractTextInput.kt index 4423d2d4..017e7fef 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/AbstractTextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/AbstractTextInput.kt @@ -64,7 +64,6 @@ abstract class AbstractTextInput(placeholder: String? = null, return cl } - @Suppress("ComplexMethod") override fun getSnAttrs(): List { val sn = super.getSnAttrs().toMutableList() placeholder?.let { diff --git a/src/main/kotlin/pl/treksoft/kvision/form/Text.kt b/src/main/kotlin/pl/treksoft/kvision/form/Text.kt index ce23974d..44cbf0c9 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/Text.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/Text.kt @@ -16,7 +16,7 @@ open class Text(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, placeholder: String? = input.autocomplete = value } - override final val input: TextInput = TextInput(type, placeholder, value, name, maxlength, disabled, idc) + final override val input: TextInput = TextInput(type, placeholder, value, name, maxlength, disabled, idc) init { this.addInternal(input) diff --git a/src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt b/src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt index 2efa99c9..7cc45971 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt @@ -20,7 +20,8 @@ open class TextArea(cols: Int? = null, rows: Int? = null, placeholder: String? = input.wrapHard = value } - override final val input: TextAreaInput = TextAreaInput(cols, rows, placeholder, value, name, maxlength, disabled, idc) + final override val input: TextAreaInput = TextAreaInput(cols, rows, placeholder, value, name, maxlength, + disabled, idc) init { this.addInternal(input) diff --git a/src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt index 35961285..0b2c69fd 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt @@ -30,7 +30,6 @@ class TextAreaInput(cols: Int? = null, rows: Int? = null, placeholder: String? = } ?: kvh("textarea") } - @Suppress("ComplexMethod") override fun getSnAttrs(): List { val sn = super.getSnAttrs().toMutableList() cols?.let { -- cgit