Migrate compiler, idea and others to new case conversion api
This commit is contained in:
@@ -36,7 +36,8 @@ class JavaKaptContextTest : TestCase() {
|
||||
val annotatedElements = roundEnv.getElementsAnnotatedWith(annotation)
|
||||
|
||||
for (annotatedElement in annotatedElements) {
|
||||
val generatedClassName = annotatedElement.simpleName.toString().capitalize() + annotationName.capitalize()
|
||||
val generatedClassName = annotatedElement.simpleName.toString().replaceFirstChar(Char::uppercaseChar) +
|
||||
annotationName.replaceFirstChar(Char::uppercaseChar)
|
||||
val file = processingEnv.filer.createSourceFile("generated." + generatedClassName)
|
||||
file.openWriter().use {
|
||||
it.write(
|
||||
|
||||
Reference in New Issue
Block a user