Skip to content

Refactor BasicJsonParser to simplify JSON parsing logic #41876

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

Closed

Conversation

hyunmin0317
Copy link

@hyunmin0317 hyunmin0317 commented Aug 15, 2024

This pull request refactors the BasicJsonParser class to simplify the JSON parsing logic.

The following changes are made:

  • Consolidated trimLeadingCharacter and trimTrailingCharacter methods into a single trimEdges method to reduce code duplication and improve clarity.
  • Extracted the number parsing logic into a new parseNumber method to separate concerns and enhance maintainability.

These changes aim to improve code readability and make future maintenance easier.
No functional changes are introduced.

Thank you for reviewing this pull request!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 15, 2024
@hyunmin0317 hyunmin0317 force-pushed the refactor/basic-json-parser branch from cfb5e01 to 11c86d2 Compare August 16, 2024 15:25
@wilkinsona wilkinsona removed the request for review from asashour August 19, 2024 08:55
@mhalbritter mhalbritter self-assigned this Aug 21, 2024
@mhalbritter mhalbritter added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 21, 2024
@mhalbritter mhalbritter added this to the 3.2.x milestone Aug 21, 2024
@mhalbritter mhalbritter changed the title Refactor BasicJsonParser to Simplify JSON Parsing Logic Refactor BasicJsonParser to simplify JSON parsing logic Aug 21, 2024
@mhalbritter mhalbritter modified the milestones: 3.2.x, 3.2.9 Aug 21, 2024
@mhalbritter
Copy link
Contributor

Thank you very much and congratulations on your first contribution 🎉!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants