Skip to content

Conversation

Chase22
Copy link

@Chase22 Chase22 commented Jul 4, 2025

I noticed a little bug in the toString method while writing tests.

The method will always add a new line even if there's only one line to output. Ended up majorly rewriting the whole method 😅

In essence it still does the same but uses some of the java 21 tools to make the code a bit cleaner.

The method first splits the data into "chunks" each representing the data for one line and then formats each line with the address if required.

toString also now calls toStringWithOffset with a 0 offset, so no duplicated implementation

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.

1 participant