[Editor] Suppress unchecked cast warning in ParametersTableFragment

This commit is contained in:
2021-03-05 21:08:16 +01:00
parent bc604b52df
commit c8e2a7faee

View File

@@ -17,7 +17,10 @@ class ParametersTableFragment : Fragment() {
column("Key", Parameter<*>::keyProperty)
TableColumn<Parameter<*>, Any>("Value").apply {
setCellValueFactory { it.value.valueProperty as ObservableValue<Any> }
setCellValueFactory {
@Suppress("UNCHECKED_CAST")
it.value.valueProperty as ObservableValue<Any>
}
setCellFactory { ParameterValueEditingCell() }
}.let { addColumnInternal(it) }
}