Skip to content

Improve TagDeserializer logic#224

Merged
tcheeric merged 2 commits intodevelopfrom
codex/refactor-tagdeserializer-to-use-tag_decoders
Jul 30, 2025
Merged

Improve TagDeserializer logic#224
tcheeric merged 2 commits intodevelopfrom
codex/refactor-tagdeserializer-to-use-tag_decoders

Conversation

@tcheeric
Copy link
Copy Markdown
Owner

Summary

  • refactor TagDeserializer to use a map of decoder functions
  • add dedicated TagDeserializerTest covering several tag types

Testing

  • mvn -q verify

https://chatgpt.com/codex/tasks/task_b_68890867bf448331950228605da8e756

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the TagDeserializer class to improve its maintainability by replacing a large switch statement with a map-based approach for tag deserialization. It also adds comprehensive test coverage for the tag deserialization functionality.

  • Replaced switch statement with a static map of decoder functions for better maintainability
  • Added dedicated test class with coverage for multiple tag types including AddressTag, EventTag, PriceTag, UrlTag, and GenericTag fallback

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
TagDeserializer.java Refactored deserialization logic to use a map of decoder functions instead of switch statement
TagDeserializerTest.java Added comprehensive test coverage for various tag types and generic fallback behavior

…agDeserializer.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@tcheeric tcheeric merged commit 30a4de3 into develop Jul 30, 2025
@tcheeric tcheeric deleted the codex/refactor-tagdeserializer-to-use-tag_decoders branch July 30, 2025 20:35
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.

2 participants