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

Add library model for Apache Commons CollectionUtils.isNotEmpty (#932) #1062

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

pochopsp
Copy link
Contributor

@pochopsp pochopsp commented Oct 27, 2024

Thank you for contributing to NullAway!

Please note that once you click "Create Pull Request" you will be asked to sign our Uber Contributor License Agreement via CLA assistant.

Before pressing the "Create Pull Request" button, please provide the following:

@CLAassistant
Copy link

CLAassistant commented Oct 27, 2024

CLA assistant check
All committers have signed the CLA.

@msridhar
Copy link
Collaborator

@pochopsp thanks for the contribution! #932 was originally written for StringUtils.isNotEmpty. Any chance you could extend this PR to handle that method, so we can close out that issue?

Copy link

codecov bot commented Oct 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.61%. Comparing base (d6b7fa3) to head (49d5cb5).
Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1062      +/-   ##
============================================
+ Coverage     87.60%   87.61%   +0.01%     
  Complexity     2203     2203              
============================================
  Files            85       85              
  Lines          7187     7193       +6     
  Branches       1415     1415              
============================================
+ Hits           6296     6302       +6     
  Misses          456      456              
  Partials        435      435              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pochopsp
Copy link
Contributor Author

Hi @msridhar , thanks for your kind reply. If I got it right, org.apache.commons.lang.StringUtils and org.apache.commons.lang3.StringUtils are respectively handled at line 754 and 756 here: https://github.com/uber/NullAway/blob/49d5cb54364cbb5e6f521e770026e9e25b2203e7/nullaway/src/main/java/com/uber/nullaway/handlers/LibraryModelsHandler.java (they were already there before my commit)
Maybe I could add two unit tests for them?

@msridhar msridhar linked an issue Oct 28, 2024 that may be closed by this pull request
@msridhar
Copy link
Collaborator

You're right! The issue was not renamed properly. I'll go ahead and merge this one, thanks!

@msridhar msridhar merged commit 8f4b928 into uber:master Oct 28, 2024
11 checks passed
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.

Support org.apache.commons.lang3.StringUtils.isNotEmpty
3 participants