Skip to content

Transform: fix toString() method #2526

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

capdevon
Copy link
Contributor

@capdevon capdevon commented Jun 25, 2025

Improve Transform Serialization, Imports, and toString Formatting

  • Refactored import statements in Transform.java for clarity and explicitness.
  • Updated copyright year to 2025.
  • Enhanced the toString() method to use String.format with Locale.US for consistent formatting and improved readability of translation, rotation, and scale values.
  • Renamed method parameters and local variables in serialization methods for clarity (e.g., eex, importerim).
  • Cleaned up and standardized code in write and read methods for better maintainability.

// System.out.println("Group 9 (Scale Y): " + matcher.group(9));
// System.out.println("Group 10 (Scale Z): " + matcher.group(10));
// }

Copy link
Member

Choose a reason for hiding this comment

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

Did you mean to commit this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I left them on purpose. The legend of the indices of the "groups" makes the test easier to understand; otherwise, it is difficult to understand the choice of those used later.

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure how they help with that. They seem like bits of commented out code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have replaced the bits of code with clearer comments. I hope you feel more confident now.

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