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 additional models for nullsafe and biabduction #1482

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

cottamz
Copy link

@cottamz cottamz commented Aug 18, 2021

Please see CONTRIBUTING.md for how to set up your development environment and run tests.

java.util.Objects should be modeled in nullsafe:
https://docs.oracle.com/javase/8/docs/api/java/util/Objects.html

@facebook-github-bot
Copy link
Contributor

Hi @cottamz!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@cottamz cottamz changed the title add java.utils.Objects::nonNull to the nullsafe model table add java.utils.Objects.nonNull to the nullsafe model table Aug 18, 2021
@jvillard
Copy link
Contributor

jvillard commented Sep 8, 2021

Thank you for your PR, this looks great. Let me know if you have issues with signing the CLA.

I don't think we need the extra files in models/ for your purposes as these are only taken into account by the biabduction analysis. That said, it doesn't hurt to have them around too so up to you whether to leave them in or not.

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@cottamz cottamz changed the title add java.utils.Objects.nonNull to the nullsafe model table add additional models for nullsafe and biabduction Sep 13, 2021
@cottamz
Copy link
Author

cottamz commented Sep 13, 2021

Thank you for your PR, this looks great. Let me know if you have issues with signing the CLA.

The CLA is now signed.

I don't think we need the extra files in models/ for your purposes as these are only taken into account by the biabduction analysis. That said, it doesn't hurt to have them around too so up to you whether to leave them in or not.

I updated the pull request title indicating we are adding models for both nullsafe and biabduction.

@facebook-github-bot
Copy link
Contributor

@jvillard has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@cottamz
Copy link
Author

cottamz commented Sep 14, 2021

@jvillard Could you share the Phabricator build and test output?

@facebook-github-bot
Copy link
Contributor

@cottamz has updated the pull request. You must reimport the pull request before landing.

@jvillard
Copy link
Contributor

This looks good overall but the changes in the biabduction models had surprising effects on other analyses, we're trying to figure out if we could limit these effects to the biabduction analysis.

@facebook-github-bot
Copy link
Contributor

@cottamz has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@cottamz has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@jvillard has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

$$(realpath $(1)) $$(realpath $(2)) >&2 || \
$$(/Users/cottet/infer/infer/bin/realpath $(1)) $$(/Users/cottet/infer/infer/bin/realpath $(2)) >&2 || \
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you revert this change? It includes a user-specific path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants