From 4e5e87cc74e506d61f374be616360e1157e15e82 Mon Sep 17 00:00:00 2001 From: Ioana Stefan Date: Mon, 30 Nov 2020 11:57:17 +0000 Subject: [PATCH] Update comment for generating IntDefs mapping This change updates the IntDefs processor intructions for how to generate the IntDefs mapping files. Test: N/A Change-Id: I974636d1ed658e0d44ad2c50f738eff1c80127d9 --- .../src/android/processor/IntDefProcessor.kt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/processors/intdef_mappings/src/android/processor/IntDefProcessor.kt b/tools/processors/intdef_mappings/src/android/processor/IntDefProcessor.kt index 84faeea36eeac..4c1fa6ec40b36 100644 --- a/tools/processors/intdef_mappings/src/android/processor/IntDefProcessor.kt +++ b/tools/processors/intdef_mappings/src/android/processor/IntDefProcessor.kt @@ -33,13 +33,12 @@ import javax.tools.Diagnostic.Kind import javax.tools.StandardLocation.CLASS_OUTPUT import kotlin.collections.set - /** * The IntDefProcessor is intended to generate a mapping from ints to their respective string * identifier for each IntDef for use by Winscope or any other tool which requires such a mapping. * - * The processor will run when building :frameworks-all and dump all the IntDef mappings found the - * files the make up :frameworks-all as json to outputPath. + * The processor will run when building :framework-minus-apex-intdefs and dump all the IntDef + * mappings found in the files that make up the build target as json to outputPath. */ class IntDefProcessor : AbstractProcessor() { private val outputName = "intDefMapping.json" @@ -72,8 +71,8 @@ class IntDefProcessor : AbstractProcessor() { } private fun generateIntDefMapping( - annotatedElement: TypeElement, - annotationType: TypeElement + annotatedElement: TypeElement, + annotationType: TypeElement ): Map { // LinkedHashMap makes sure ordering is the same as in the code val mapping = LinkedHashMap() @@ -151,8 +150,8 @@ class IntDefProcessor : AbstractProcessor() { companion object { fun serializeTo( - annotationTypeToIntDefMapping: Map, - writer: Writer + annotationTypeToIntDefMapping: Map, + writer: Writer ) { val indent = " "