Fix MyBundle.messagePointer to return Supplier<@Nls String> instead of String (#71)

This commit is contained in:
Dmitry Kozhevnikov 2020-12-21 00:30:29 +03:00 committed by GitHub
parent 2b3d7ea6d6
commit 692f21953e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,11 +11,11 @@ object MyBundle : AbstractBundle(BUNDLE) {
@Suppress("SpreadOperator") @Suppress("SpreadOperator")
@JvmStatic @JvmStatic
fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = getMessage(key, *params) fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) =
getMessage(key, *params)
@Suppress("SpreadOperator") @Suppress("SpreadOperator")
@JvmStatic @JvmStatic
fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = run { fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) =
message(key, *params) getLazyMessage(key, *params)
}
} }