Kapt: Add runtime library, move all modules inside the 'kapt3' directory
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
package error;
|
||||
|
||||
public final class NonExistentClass {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface MyAnnotation {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Simple {
|
||||
public static final test.Simple.Companion Companion = null;
|
||||
|
||||
@MyAnnotation()
|
||||
public final void myMethod() {
|
||||
}
|
||||
|
||||
public Simple() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class NestedClass {
|
||||
|
||||
public NestedClass() {
|
||||
super();
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class NestedNestedClass {
|
||||
|
||||
public NestedNestedClass() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class InnerClass {
|
||||
|
||||
public InnerClass() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class Companion {
|
||||
|
||||
private Companion() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package test
|
||||
|
||||
internal class Simple {
|
||||
@MyAnnotation
|
||||
fun myMethod() {}
|
||||
|
||||
class NestedClass {
|
||||
class NestedNestedClass
|
||||
}
|
||||
|
||||
inner class InnerClass
|
||||
companion object
|
||||
}
|
||||
|
||||
internal annotation class MyAnnotation
|
||||
@@ -0,0 +1,4 @@
|
||||
MyMethodMyAnnotation.java:
|
||||
|
||||
package generated;
|
||||
class MyMethodMyAnnotation {}
|
||||
@@ -0,0 +1,48 @@
|
||||
package error;
|
||||
|
||||
public final class NonExistentClass {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface MyAnnotation {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@MyAnnotation()
|
||||
public final class State {
|
||||
private final int someInt = 0;
|
||||
private final long someLong = 0L;
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String someString = null;
|
||||
|
||||
public final int getSomeInt() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final long getSomeLong() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getSomeString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public State(int someInt, long someLong, @org.jetbrains.annotations.NotNull()
|
||||
java.lang.String someString) {
|
||||
super();
|
||||
}
|
||||
|
||||
public State(int someInt, long someLong) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
internal annotation class MyAnnotation
|
||||
|
||||
@MyAnnotation
|
||||
internal class State @JvmOverloads constructor(
|
||||
val someInt: Int,
|
||||
val someLong: Long,
|
||||
val someString: String = ""
|
||||
)
|
||||
@@ -0,0 +1,4 @@
|
||||
StateMyAnnotation.java:
|
||||
|
||||
package generated;
|
||||
class StateMyAnnotation {}
|
||||
@@ -0,0 +1,61 @@
|
||||
package error;
|
||||
|
||||
public final class NonExistentClass {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public enum EnumClass {
|
||||
/*public static final*/ BLACK /* = new BLACK() */,
|
||||
/*public static final*/ WHITE /* = new WHITE() */;
|
||||
|
||||
EnumClass() {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
public abstract @interface MyAnnotation {
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public enum EnumClass2 {
|
||||
/*public static final*/ WHITE /* = new WHITE(null) */,
|
||||
/*public static final*/ RED /* = new RED(null) */;
|
||||
private final java.lang.String blah = null;
|
||||
|
||||
EnumClass2(@org.jetbrains.annotations.NotNull()
|
||||
java.lang.String blah) {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Simple {
|
||||
|
||||
@MyAnnotation()
|
||||
public final void myMethod() {
|
||||
}
|
||||
|
||||
public final int heavyMethod() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Simple() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package test
|
||||
|
||||
internal class Simple {
|
||||
@MyAnnotation
|
||||
fun myMethod() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
fun heavyMethod(): Int {
|
||||
return if (true) 5 else 6
|
||||
}
|
||||
}
|
||||
|
||||
internal annotation class MyAnnotation
|
||||
|
||||
internal enum class EnumClass {
|
||||
BLACK, WHITE
|
||||
}
|
||||
|
||||
|
||||
internal enum class EnumClass2 private constructor(private val blah: String) {
|
||||
WHITE("A"), RED("B")
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
MyMethodMyAnnotation.java:
|
||||
|
||||
package generated;
|
||||
class MyMethodMyAnnotation {}
|
||||
Reference in New Issue
Block a user