Skip to content

Commit

Permalink
Add comment to code
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderTvis committed Feb 15, 2023
1 parent 95ec688 commit 9e87e46
Showing 1 changed file with 35 additions and 32 deletions.
67 changes: 35 additions & 32 deletions proposals/jvm-expose-boxed-annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,38 +107,41 @@ value class Example(val s: String) {

```java
public final class Example {
//// Public ABI intended for Java callers:

// Visibility matches with the visibility of the s property in the code
public getS()Ljava/lang/String;
public x()V
public y(LExample;)V

public toString()Ljava/lang/String;
public hashCode()I
public equals(Ljava/lang/Object;)Z

// Not synthetic constructor,
// visibility matches with the one declared in the code,
// calls constructor-impl
public <init>(Ljava/lang/String;)V

//// Mangled ABI for Kotlin callers:
public synthetic unbox-impl()Ljava/lang/String;
public static x-impl(Ljava/lang/String;)V
public static y-NmaSWX8(Ljava/lang/String;Ljava/lang/String;)V
public static toString-impl(Ljava/lang/String;)Ljava/lang/String;
public static hashCode-impl(Ljava/lang/String;)I
public static equals-impl(Ljava/lang/String;Ljava/lang/Object;)Z
public static constructor-impl(Ljava/lang/String;)Ljava/lang/String;
public static synthetic box-impl(Ljava/lang/String;)LExample;
public static equals-impl0(Ljava/lang/String;Ljava/lang/String;)Z

// Synthetic constructor, not calls constructor-impl for boxing
private synthetic <init>(Ljava/lang/String;Ljava/lang/Void;)V

@Lkotlin/jvm/JvmInline;()
@Lkotlin/jvm/JvmExposeBoxed;()
//// Public ABI intended for Java callers:

// Visibility matches with the visibility of the s property in the code
public getS()Ljava/lang/String;
public x()V
public y(LExample;)V

public toString()Ljava/lang/String;
public hashCode()I
public equals(Ljava/lang/Object;)Z

// Not synthetic constructor,
// visibility matches with the one declared in the code,
// calls constructor-impl
public <init>(Ljava/lang/String;)V

//// Mangled ABI for Kotlin callers:
public synthetic unbox-impl()Ljava/lang/String;
public static x-impl(Ljava/lang/String;)V
public static y-NmaSWX8(Ljava/lang/String;Ljava/lang/String;)V
public static toString-impl(Ljava/lang/String;)Ljava/lang/String;
public static hashCode-impl(Ljava/lang/String;)I
public static equals-impl(Ljava/lang/String;Ljava/lang/Object;)Z

// Constructor for unboxed value
public static constructor-impl(Ljava/lang/String;)Ljava/lang/String;
public static synthetic box-impl(Ljava/lang/String;)LExample;
public static equals-impl0(Ljava/lang/String;Ljava/lang/String;)Z

// Synthetic constructor,
// not calls constructor-impl for boxing
private synthetic <init>(Ljava/lang/String;Ljava/lang/Void;)V

@Lkotlin/jvm/JvmInline;()
@Lkotlin/jvm/JvmExposeBoxed;()
}
```

Expand Down

0 comments on commit 9e87e46

Please sign in to comment.