Skip to content
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

Refactoring to fix auto detected coding issues #699

Merged
merged 12 commits into from
Sep 29, 2023
Merged

Refactoring to fix auto detected coding issues #699

merged 12 commits into from
Sep 29, 2023

Conversation

Al Niessner added 11 commits September 28, 2023 10:18
Removed unnecessary code. The before the loop did a clear() which removes all elements. The while loop to then remove the blanks immediately after the clear() is useless.
Removed unnecessary container. Only half the information is retained and used when adding references. Removed the saving but no reading of the unused data.
added a hashCode() that must return the same value for two objects when equals() is true.
@al-niessner
Copy link
Contributor Author

@jordanpadams @nutjob4life @tloubrieu-jpl

Did not fix the two regex complaints because these are cut-n-paste from the PDS requirements (schema, schematron, and/or docs). Hence changing the may cause subtle differences that could cause bigger problems with the customer base.

@jordanpadams jordanpadams changed the title Issue 698: fix auto detected coding problems Refactoring to fix auto detected coding problems Sep 29, 2023
@jordanpadams jordanpadams changed the title Refactoring to fix auto detected coding problems Refactoring to fix auto detected coding issues Sep 29, 2023
@jordanpadams jordanpadams merged commit 30d4fb4 into main Sep 29, 2023
2 checks passed
@jordanpadams jordanpadams deleted the issue_698 branch September 29, 2023 17:45
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.

Investigate and Fix code scanning alert for potential improvements
3 participants