From 5b12fc5320ee347fbcb4514c442d22ae7e34d045 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 29 Mar 2018 00:34:10 +0200 Subject: Code style fixes. --- src/main/kotlin/pl/treksoft/kvision/panel/DockPanel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/pl/treksoft/kvision/panel') 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 = 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 = 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 -> { -- cgit