File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed
processor/src/main/kotlin/com/tobrun/datacompat Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import com.squareup.kotlinpoet.ksp.toTypeName
29
29
import com.squareup.kotlinpoet.ksp.toTypeParameterResolver
30
30
import com.squareup.kotlinpoet.ksp.writeTo
31
31
import com.tobrun.datacompat.annotation.DataCompat
32
- import java.util.*
32
+ import java.util.Locale
33
33
34
34
/* *
35
35
* [DataCompatProcessor] is a concrete instance of the [SymbolProcessor] interface.
@@ -221,15 +221,12 @@ class DataCompatProcessor(
221
221
}
222
222
223
223
builderBuilder.addFunction(
224
- FunSpec .builder(
225
- " set${
226
- propertyName.replaceFirstChar {
227
- if (it.isLowerCase()) it.titlecase(
228
- Locale .getDefault()
229
- ) else it.toString()
230
- }
231
- } "
232
- )
224
+ FunSpec
225
+ .builder(
226
+ " set${propertyName.replaceFirstChar {
227
+ if (it.isLowerCase()) it.titlecase(Locale .getDefault()) else it.toString()
228
+ }} "
229
+ )
233
230
.addKdoc(
234
231
"""
235
232
|Set $kDocProperty
@@ -283,10 +280,10 @@ class DataCompatProcessor(
283
280
|This is a concrete implementation of the builder design pattern.
284
281
|
285
282
|${
286
- kdocPropertyList.joinToString(
287
- prefix = " $KDOC_PROPERTY_ANNOTATION " ,
288
- separator = " \n $KDOC_PROPERTY_ANNOTATION "
289
- )
283
+ kdocPropertyList.joinToString(
284
+ prefix = " $KDOC_PROPERTY_ANNOTATION " ,
285
+ separator = " \n $KDOC_PROPERTY_ANNOTATION "
286
+ )
290
287
}
291
288
""" .trimMargin()
292
289
)
You can’t perform that action at this time.
0 commit comments