Skip to content

Commit

Permalink
annotate to do
Browse files Browse the repository at this point in the history
  • Loading branch information
seal committed Oct 19, 2017
1 parent 1e18b6e commit 1571092
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/wu/seal/jsontokotlin/FastjsonSupporter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ object FastjsonSupporter:IJsonLibSupporter {

fastjsonSupportPropertyBuilder.append(" ")

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

fastjsonSupportPropertyBuilder.append(": ")
Expand All @@ -40,9 +43,7 @@ object FastjsonSupporter:IJsonLibSupporter {
return fastjsonSupportPropertyBuilder.toString()
}

/**
* todo // the logic also has problem ,remove 'is' when it end with uppercase,or don't do anything
*/

private fun removeStartIsCharactors(rawPropertyName: String): String {
if (rawPropertyName.startsWith("is")) {

Expand Down

0 comments on commit 1571092

Please sign in to comment.