summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2017-10-19 17:17:27 +0200
committerRobert Jaros <rjaros@finn.pl>2017-10-19 17:17:27 +0200
commit6b13b8909a302b0f0f2155b81b83cd5ab4d7a046 (patch)
treeeacfa6337b13ffcd152ec87ab84aee3f09f9d31a /src
parentd591af011d040d8ce2684f044b594d28ab358ef9 (diff)
downloadkvision-6b13b8909a302b0f0f2155b81b83cd5ab4d7a046.tar.gz
kvision-6b13b8909a302b0f0f2155b81b83cd5ab4d7a046.tar.bz2
kvision-6b13b8909a302b0f0f2155b81b83cd5ab4d7a046.zip
Code style fixes
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/AbstractTextInput.kt1
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/Text.kt2
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt3
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt1
4 files changed, 3 insertions, 4 deletions
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<StringPair> {
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<StringPair> {
val sn = super.getSnAttrs().toMutableList()
cols?.let {