mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
Add support for incremental annotation processors in KAPT. These processors conform to https://docs.gradle.org/current/userguide/java_plugin.html#sec:incremental_annotation_processing specification. Support is provided by using javac compiler APIs and recording the source file structure. At runtime, processors are instrumented with custom Filer that is used to keep track of generated files. In order to support classpath changes, stub generation task is used to generated a list of changed FQCNs, and this is simply used by KAPT. Both worker and non-worker mode are supported. #KT-23880
16 lines
313 B
Java
Vendored
16 lines
313 B
Java
Vendored
package test;
|
|
|
|
public class NumberManager {
|
|
|
|
static final String CONST = "STRING_CONST";
|
|
static final int INT_CONST = 123 + 123;
|
|
static int NOT_A_CONST = 1000;
|
|
|
|
<T extends NumberHolder> T[] getAllHolders() {
|
|
return null;
|
|
}
|
|
|
|
private MyEnum getMyEnum() {
|
|
return null;
|
|
}
|
|
} |