Generate @Nullable/@NotNull annotations on Kotlin declarations (for IDEA interop)

This commit is contained in:
Andrey Breslav
2013-11-08 18:39:43 +04:00
parent 4268d8aa27
commit 2873f74932
13 changed files with 405 additions and 11 deletions
@@ -0,0 +1,15 @@
public final class ClassWithConstructorAndProperties implements jet.JetObject {
@org.jetbrains.annotations.Nullable
private final java.lang.String nullable;
@org.jetbrains.annotations.NotNull
private final java.lang.String notNull;
@org.jetbrains.annotations.Nullable
public final java.lang.String getNullable() { /* compiled code */ }
@org.jetbrains.annotations.NotNull
public final java.lang.String getNotNull() { /* compiled code */ }
@org.jetbrains.annotations.NotNull
public ClassWithConstructorAndProperties(@org.jetbrains.annotations.Nullable @jet.runtime.typeinfo.JetValueParameter(name = "nullable", type = "?") java.lang.String p, @org.jetbrains.annotations.NotNull @jet.runtime.typeinfo.JetValueParameter(name = "notNull") java.lang.String p1) { /* compiled code */ }
}