Nullability fixed in a test

This commit is contained in:
Andrey Breslav
2012-01-31 11:37:01 +04:00
parent b257ad4fa0
commit 1b88be725a
+5 -2
View File
@@ -70,9 +70,12 @@ import java.util.*
class P() : BodyTag("p")
class H1() : BodyTag("h1")
class A() : BodyTag("a") {
var href : String
var href : String?
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)