Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filed name "try" make plugin error #71

Closed
qiyulan opened this issue Dec 9, 2016 · 0 comments · Fixed by #73
Closed

Filed name "try" make plugin error #71

qiyulan opened this issue Dec 9, 2016 · 0 comments · Fixed by #73

Comments

@qiyulan
Copy link

qiyulan commented Dec 9, 2016

If json has a String named "try",the plugin will add a filed "try",but try is Java keyword.

com.intellij.util.IncorrectOperationException: Incorrect field '@com.google.gson.annotations.SerializedName("try")private TryEntity try ; '

It seems will fix at https://github.com/zzz40500/GsonFormat/blob/master/src/main/java/org/gsonformat/intellij/common/CheckUtil.java#L67
if add "try" in mKeyWordList.

Qixingchen added a commit to Qixingchen/GsonFormat that referenced this issue Dec 16, 2016
zzz40500 added a commit that referenced this issue Dec 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant