aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/panel
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-03-29 00:34:10 +0200
committerRobert Jaros <rjaros@finn.pl>2018-03-29 00:34:10 +0200
commit5b12fc5320ee347fbcb4514c442d22ae7e34d045 (patch)
tree1bd3e08a6c8c9835c1bb7d124af4a9ccb284b71b /src/main/kotlin/pl/treksoft/kvision/panel
parent8e0be3f950d7a012d6374eb27acb1a59cc3aa6e5 (diff)
downloadkvision-5b12fc5320ee347fbcb4514c442d22ae7e34d045.tar.gz
kvision-5b12fc5320ee347fbcb4514c442d22ae7e34d045.tar.bz2
kvision-5b12fc5320ee347fbcb4514c442d22ae7e34d045.zip
Code style fixes.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/panel')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/panel/DockPanel.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/panel/DockPanel.kt b/src/main/kotlin/pl/treksoft/kvision/panel/DockPanel.kt
index 3a5f25f2..7f1226af 100644
--- a/src/main/kotlin/pl/treksoft/kvision/panel/DockPanel.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/panel/DockPanel.kt
@@ -97,7 +97,7 @@ open class DockPanel(classes: Set<String> = setOf(), init: (DockPanel.() -> Unit
* @param position position in the dock
* @return current container
*/
- @Suppress("MagicNumber")
+ @Suppress("MagicNumber", "ComplexMethod")
open fun add(child: Component, position: Side): DockPanel {
when (position) {
Side.UP -> {
@@ -152,6 +152,7 @@ open class DockPanel(classes: Set<String> = setOf(), init: (DockPanel.() -> Unit
* @param position position in the dock
* @return current container
*/
+ @Suppress("ComplexMethod")
open fun removeAt(position: Side): DockPanel {
when (position) {
Side.UP -> {