File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
coldstoragecompiler/src/main/java/com/arcane/coldstorage_compiler Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import com.arcane.coldstorageannotation.Refrigerate
44import com.google.auto.service.AutoService
55import com.squareup.kotlinpoet.*
66import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
7-
87import java.io.File
98import java.util.stream.Collectors
109import javax.annotation.processing.*
@@ -24,6 +23,15 @@ import kotlin.reflect.jvm.internal.impl.name.FqName
2423@SupportedOptions(FileGenerator .KAPT_KOTLIN_GENERATED_OPTION_NAME )
2524class FileGenerator : AbstractProcessor () {
2625
26+ private lateinit var processingEnvironment: ProcessingEnvironment
27+
28+ private val methods: MutableList <FunSpec > = arrayListOf ()
29+
30+ override fun init (pe : ProcessingEnvironment ? ) {
31+ super .init (pe)
32+ processingEnvironment = pe!!
33+ }
34+
2735 /* *
2836 * Set the supported annotation types.
2937 */
@@ -56,7 +64,6 @@ class FileGenerator : AbstractProcessor() {
5664 Refrigerate ::class .java
5765 )
5866
59- val methods: MutableList <FunSpec > = arrayListOf ()
6067 annotatedElements?.forEach { element ->
6168 methods.add(
6269 generateWrapperMethod(
You can’t perform that action at this time.
0 commit comments