Mercurial > cgi-bin > hgweb.cgi > PassMan
diff src/main/kotlin/name/blackcap/passman/Entry.kt @ 8:698c4a3d758d
Some code clean-up.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 23 Sep 2022 20:59:52 -0700 |
parents | f245b9a53495 |
children | 72619175004e |
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/Entry.kt Tue Sep 20 21:54:32 2022 -0700 +++ b/src/main/kotlin/name/blackcap/passman/Entry.kt Fri Sep 23 20:59:52 2022 -0700 @@ -4,7 +4,7 @@ import kotlin.reflect.KProperty import kotlin.reflect.full.declaredMemberProperties -class Entry(val name: String, val username: String, val password: CharArray, val notes: String, +class Entry(val name: String, val username: String, val password: CharArray, val notes: String?, val created: Date? = null, val modified: Date? = null, val accessed: Date? = null) { companion object { @@ -59,7 +59,7 @@ fun printLong(redactPassword: String? = null) { print(redactPassword) - println("Notes: $notes") + println("Notes: ${notes ?: "(none)"}") printDate("Created", created) printDate("Modified", modified) printDate("Accessed", accessed) @@ -77,5 +77,4 @@ println(ISO8601.format(date)) } } - -} \ No newline at end of file +}