refactoring: cleanup and reformat
This commit is contained in:
@@ -7,8 +7,7 @@ interface ParameterI {
|
||||
val default: String
|
||||
}
|
||||
|
||||
class Parameter(val name: String, val type: String, direction: Direction? = Direction.IN, val default: Any? = null)
|
||||
{
|
||||
class Parameter(val name: String, val type: String, direction: Direction? = Direction.IN, val default: Any? = null) {
|
||||
val direction: Direction
|
||||
|
||||
init {
|
||||
@@ -19,10 +18,10 @@ class Parameter(val name: String, val type: String, direction: Direction? = Dire
|
||||
}
|
||||
}
|
||||
|
||||
constructor(name: String, type: String, direction: String? = "IN", default: Any? = null) : this(
|
||||
constructor(name: String, type: String, direction: String? = "IN", default: Any? = null): this(
|
||||
name = name,
|
||||
type = type,
|
||||
direction = direction?.let { Direction.valueOf(direction.toUpperCase())},
|
||||
direction = direction?.let { Direction.valueOf(direction.toUpperCase()) },
|
||||
default = default
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user