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

removed copyFile method as it is not being used anywhere; used try-wi… #9509

Merged
merged 1 commit into from Apr 13, 2023

Conversation

rtreacy
Copy link
Contributor

@rtreacy rtreacy commented Apr 11, 2023

…th-catch for handling autoclosable resources in determineFileType method and isGraphMLFile method; also fixed a couple of catch blocks in those methods to have minimal logging, rather than hiding the exceptions via empty catch blocks

What this PR does / why we need it:
Better handling of resources

Which issue(s) this PR closes

Closes #9312

Special notes for your reviewer:

Suggestions on how to test this:

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

…th-catch for handling autoclosable resources in determineFileType method and isGraphMLFile method; also fixed a couple of catch blocks in those methods to have minimal logging, rather than hiding the exceptions via empty catch blocks
@rtreacy rtreacy requested a review from landreev April 11, 2023 13:14
@pdurbin pdurbin added this to Ready for Review ⏩ in IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) via automation Apr 11, 2023
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

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

API tests are passing: https://jenkins.dataverse.org/job/IQSS-Dataverse-Develop-PR/job/PR-9509/1/testReport/edu.harvard.iq.dataverse.api/

@rtreacy I'm approving this but can you please fill in "Suggestions on how to test this" for @kcondon? I didn't test the code myself but the changes look good.

IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Ready for Review ⏩ to Ready for QA ⏩ Apr 11, 2023
@kcondon kcondon self-assigned this Apr 13, 2023
@kcondon kcondon merged commit d061de9 into develop Apr 13, 2023
6 checks passed
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from QA ✅ to Done 🚀 Apr 13, 2023
@kcondon kcondon deleted the 9312-sonar-cleanup branch April 13, 2023 20:14
@pdurbin pdurbin added this to the 5.14 milestone May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment