Skip to content

MatParam: code cleanup + javadoc #2521

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 8 commits into
base: master
Choose a base branch
from

Conversation

capdevon
Copy link
Contributor

@capdevon capdevon commented Jun 24, 2025

This PR enhances the MatParam class by introducing stricter type checking when setting values, encapsulating type validation logic, and improving code readability and maintainability.

It adds a dedicated validateValueType method, updates the equals method for clarity and correctness using Objects.equals, and refines JavaDoc comments throughout the class.

Additionally, variable naming is clarified, redundant or commented-out code is cleaned up, and direct field access (e.g., v2.x instead of v2.getX()) is used for conciseness.

These changes aim to make the codebase more robust and easier to maintain.

Edit:
Fix #2523

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.

MatParam: Design Flaw: getValueAsString() returning null leads to misleading output in toString()
2 participants