Nullability fixed in a test
This commit is contained in:
@@ -70,9 +70,12 @@ import java.util.*
|
|||||||
class P() : BodyTag("p")
|
class P() : BodyTag("p")
|
||||||
class H1() : BodyTag("h1")
|
class H1() : BodyTag("h1")
|
||||||
class A() : BodyTag("a") {
|
class A() : BodyTag("a") {
|
||||||
var href : String
|
var href : String?
|
||||||
get() = attributes["href"]
|
get() = attributes["href"]
|
||||||
set(value) { attributes["href"] = value }
|
set(value) {
|
||||||
|
if (value != null)
|
||||||
|
attributes["href"] = value
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Map<String, String>.set(key : String, value : String) = this.put(key, value)
|
fun Map<String, String>.set(key : String, value : String) = this.put(key, value)
|
||||||
|
|||||||
Reference in New Issue
Block a user