[java] Fix falsy Spotbugs warning about not closed resource#16318
[java] Fix falsy Spotbugs warning about not closed resource#16318bonigarcia merged 1 commit intoSeleniumHQ:trunkfrom
Conversation
I had to inline method `findBinaryInClasspath()` to make Spotbugs happy. I could not find any other way to suppress this falsy warning. :(
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
🔗 Related Issues
Fixes #16314
Build failure: https://github.com/SeleniumHQ/selenium/actions/runs/17641086530/job/50128139484
💥 What does this PR do?
Fixes Spotbugs warning
🔧 Implementation Notes
I had to inline method
findBinaryInClasspath()to make Spotbugs happy. I could not find any other way to suppress this falsy warning. :(🔄 Types of changes
PR Type
Bug fix
Description
Inline
findBinaryInClasspath()method to fix Spotbugs warningRemove unused method to resolve build failure
Maintain same functionality with direct resource stream access
Diagram Walkthrough
File Walkthrough
SeleniumManager.java
Inline binary classpath lookup methodjava/src/org/openqa/selenium/manager/SeleniumManager.java
findBinaryInClasspath()method completelygetBinary()methodrequireNonNull()wrapper