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

Refactor FieldNamingPolicy.upperCaseFirstLetter #1515

Merged
merged 1 commit into from Apr 26, 2019
Merged

Refactor FieldNamingPolicy.upperCaseFirstLetter #1515

merged 1 commit into from Apr 26, 2019

Conversation

Degubi
Copy link
Contributor

@Degubi Degubi commented Apr 17, 2019

-Refactor upperCaseFirstLetter in FieldNamingPolicy.
-Add some comments for special case handling
-Add additional test field to keep 100% coverage (branch in loop for checking to not go out of bounds).
-Shorter, faster. Except for the newly added case. I hope no one writes fields without letters.

Benchmark code: https://pastebin.com/63VJWF03
Benchmark run: https://pastebin.com/su29iePu

@inder123 inder123 self-assigned this Apr 26, 2019
@inder123 inder123 merged commit 63ee47c into google:master Apr 26, 2019
@Degubi Degubi deleted the fieldnaming_refactor branch April 27, 2019 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants