Skip to content

Using Delimiter enum values instead of hardcoded chars#94

Merged
jenspapenhagen merged 4 commits intotoon-format:mainfrom
Invokedzz:main
Feb 3, 2026
Merged

Using Delimiter enum values instead of hardcoded chars#94
jenspapenhagen merged 4 commits intotoon-format:mainfrom
Invokedzz:main

Conversation

@Invokedzz
Copy link
Contributor

Description

This changes improves readability and avoids the use of hardcoded chars; making the code more maintainable.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test coverage improvement

Changes Made

  • Add getValue() method in Delimiter.class to avoid the use of hardcoded characters in Decode

Testing

  • All existing tests pass
  • Added new tests for changes
  • Tests cover edge cases and spec compliance

Pre-submission Checklist

  • My code follows the project's coding standards
  • I have run code formatting/linting tools
  • I have added tests that prove my fix/feature works
  • New and existing tests pass locally
  • I have updated documentation if needed
  • I have reviewed the TOON specification for relevant sections

Breaking Changes

  • No breaking changes
  • Breaking changes (describe migration path below)

@Invokedzz Invokedzz requested a review from a team as a code owner February 3, 2026 14:06
@jenspapenhagen jenspapenhagen merged commit 482570e into toon-format:main Feb 3, 2026
1 check passed
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

Code Coverage

Overall Project 99.05% 🍏
Files changed 100% 🍏

File Coverage
DecodeHelper.java 100% 🍏
Delimiter.java 100% 🍏
TabularArrayDecoder.java 99.33% 🍏

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 this pull request may close these issues.

2 participants