Hi everyone,
I’ve opened a PR for TRUNK-6593.
PR: TRUNK-6593: Use try-with-resources in getFileAsBytes by siddhantappuni-ops · Pull Request #5979 · openmrs/openmrs-core · GitHub JIRA: Jira
I noticed that OpenmrsUtil.getFileAsBytes() was using a manual finally block to close the FileInputStream. I’ve refactored it to use try-with-resources instead it’s cleaner, less error-prone, and aligns with modern Java best practices. No functional changes, just better resource handling.
All tests pass. Would love a review when someone has a moment.
@dkayiwa could you take a look?
Thanks!
