File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
annotation/src/main/kotlin/com/tobrun/datacompat/annotation
processor/src/test/kotlin/com/tobrun/datacompat Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package com.tobrun.datacompat.annotation
2
2
3
3
/* *
4
4
* Default value represented as a String.
5
+ * Workaround for KSP not supporting class default parameters:
6
+ * https://github.com/google/ksp/issues/642
5
7
*
6
8
* @param valueAsString exact representation of the default value. E.g. if default [String] is used,
7
9
* it should be passed here as "\"STRING_VALUE\""; if default [Int] is used, it should be passed
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ internal val expectedSimpleTestContent = """
41
41
/**
42
42
* Convert to Builder allowing to change class properties.
43
43
*/
44
- public fun toBuilder(): Builder = Builder() .name (name) .nickname (nickname) .age (age)
45
- .veryLongAndVeryDetailedDescription (veryLongAndVeryDetailedDescription)
44
+ public fun toBuilder(): Builder = Builder() .setName (name) .setNickname (nickname) .setAge (age)
45
+ .setVeryLongAndVeryDetailedDescription (veryLongAndVeryDetailedDescription)
46
46
47
47
/**
48
48
* Composes and builds a [Person] object.
You can’t perform that action at this time.
0 commit comments