Skip to content

Commit 06997af

Browse files
committed
PR fixes
1 parent 8a72b82 commit 06997af

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

annotation/src/main/kotlin/com/tobrun/datacompat/annotation/Default.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package com.tobrun.datacompat.annotation
22

33
/**
44
* Default value represented as a String.
5+
* Workaround for KSP not supporting class default parameters:
6+
* https://github.com/google/ksp/issues/642
57
*
68
* @param valueAsString exact representation of the default value. E.g. if default [String] is used,
79
* it should be passed here as "\"STRING_VALUE\""; if default [Int] is used, it should be passed

processor/src/test/kotlin/com/tobrun/datacompat/SimpleTestContent.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ internal val expectedSimpleTestContent = """
4141
/**
4242
* Convert to Builder allowing to change class properties.
4343
*/
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)
4646
4747
/**
4848
* Composes and builds a [Person] object.

0 commit comments

Comments
 (0)