Skip to content

Commit e9b0fb1

Browse files
committed
🎨 add @JvmStatic annotation to decode and encode functions for better interoperability
1 parent 8db7e83 commit e9b0fb1

File tree

1 file changed

+2
-0
lines changed
  • qs-kotlin/src/main/kotlin/io/github/techouse/qskotlin

1 file changed

+2
-0
lines changed

qs-kotlin/src/main/kotlin/io/github/techouse/qskotlin/QS.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ object QS {
1818
* @param options [DecodeOptions] optional decoder settings
1919
* @return [Map<String, Any?>] the decoded Map
2020
*/
21+
@JvmStatic
2122
@JvmOverloads
2223
fun decode(input: Any?, options: DecodeOptions? = null): Map<String, Any?> {
2324
val options = options ?: DecodeOptions()
@@ -75,6 +76,7 @@ object QS {
7576
* @param options [EncodeOptions] optional encoder settings
7677
* @return [String] the encoded query string
7778
*/
79+
@JvmStatic
7880
@JvmOverloads
7981
fun encode(data: Any?, options: EncodeOptions? = null): String {
8082
val options = options ?: EncodeOptions()

0 commit comments

Comments
 (0)