Skip to content

Commit

Permalink
chore: fix String array mapped type
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahhaggarty committed Jun 24, 2024
1 parent 3920fa1 commit 6dea986
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/topics/jvm/java-interop.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,10 @@ Collection types may be read-only or mutable in Kotlin, so Java's collections ar

Java's arrays are mapped as mentioned [below](java-interop.md#java-arrays):

| **Java type** | **Kotlin type** |
|---------------|------------------|
| `int[]` | `kotlin.IntArray!` |
| `String[]` | `kotlin.Array<(out) String>!` |
| **Java type** | **Kotlin type** |
|---------------|--------------------------------|
| `int[]` | `kotlin.IntArray!` |
| `String[]` | `kotlin.Array<(out) String!>!` |

>The static members of these Java types are not directly accessible on the [companion objects](object-declarations.md#companion-objects)
>of the Kotlin types. To call them, use the full qualified names of the Java types, e.g. `java.lang.Integer.toHexString(foo)`.
Expand Down

0 comments on commit 6dea986

Please sign in to comment.