Skip to content

Commit 1571092

Browse files
author
seal
committed
annotate to do
1 parent 1e18b6e commit 1571092

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/wu/seal/jsontokotlin/FastjsonSupporter.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ object FastjsonSupporter:IJsonLibSupporter {
2525

2626
fastjsonSupportPropertyBuilder.append(" ")
2727

28+
/**
29+
* todo // the logic below also has problem ,remove 'is' when it end with uppercase,or don't do anything
30+
*/
2831
fastjsonSupportPropertyBuilder.append(KPropertyName.getName(removeStartIsCharactors(rawPropertyName)))
2932

3033
fastjsonSupportPropertyBuilder.append(": ")
@@ -40,9 +43,7 @@ object FastjsonSupporter:IJsonLibSupporter {
4043
return fastjsonSupportPropertyBuilder.toString()
4144
}
4245

43-
/**
44-
* todo // the logic also has problem ,remove 'is' when it end with uppercase,or don't do anything
45-
*/
46+
4647
private fun removeStartIsCharactors(rawPropertyName: String): String {
4748
if (rawPropertyName.startsWith("is")) {
4849

0 commit comments

Comments
 (0)