Skip to content

Commit 62664c8

Browse files
committed
fix #215
1 parent a4111db commit 62664c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/wu/seal/jsontokotlin/interceptor/MinimalAnnotationKotlinDataClassInterceptor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class MinimalAnnotationKotlinDataClassInterceptor : IKotlinDataClassInterceptor
1212
override fun intercept(kotlinDataClass: KotlinDataClass): KotlinDataClass {
1313
val newProperties = kotlinDataClass.properties.map { p ->
1414
if (p.originName == p.name) {
15-
p.copy(annotations = p.annotations.filter { it.rawName.isBlank() })
15+
p.copy(annotations = p.annotations.filter { it.rawName.isEmpty() })
1616
} else {
1717
p
1818
}

0 commit comments

Comments
 (0)