Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Improve null guard checks for equality expressions #16

Merged
merged 1 commit into from Dec 28, 2015

Conversation

llbit
Copy link
Contributor

@llbit llbit commented Dec 22, 2015

Fixed issue 12 for the NullableDereference analyser. Improved null test checking for equality expressions and added tests to cover all combinations of null-when-true/false and non-null-when-true/false and all combinations of true/false constant expressions in left hand side or right hand side.

Also added a test that matches the test case in issue 12.

Improved the nullness testing for equality expressions when the left or right
hand side is a constant boolean expression. Added tests for all combintations
of true/false in left and right hand side and all non-null/null when
true/false conditions.

fixes google#12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants