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

2.x: Clean up null usages by using ObjectHelper.requireNonNull #4699

Merged
merged 1 commit into from
Oct 12, 2016
Merged

2.x: Clean up null usages by using ObjectHelper.requireNonNull #4699

merged 1 commit into from
Oct 12, 2016

Conversation

vanniktech
Copy link
Collaborator

Instead of using an if statement to check for null, ObjectHelper.requireNonNull will be used now. This reduces a lot of duplicated code. Also I found a few places (mostly zip operators) where the wrong Throwable was being onError'd.

In addition for one of the Completable operators the CompositeException call has been fixed. In addition I found another one that was wrong.

@akarnokd akarnokd added this to the 2.0 RC5 milestone Oct 12, 2016
@codecov-io
Copy link

Current coverage is 84.16% (diff: 100%)

Merging #4699 into 2.x will increase coverage by 0.22%

@@                2.x      #4699   diff @@
==========================================
  Files           567        567          
  Lines         37651      37319   -332   
  Methods           0          0          
  Messages          0          0          
  Branches       5795       5703    -92   
==========================================
- Hits          31604      31408   -196   
+ Misses         4087       3977   -110   
+ Partials       1960       1934    -26   

Powered by Codecov. Last update e71d371...7847b40

@akarnokd akarnokd merged commit 4a614dc into ReactiveX:2.x Oct 12, 2016
@vanniktech vanniktech deleted the null branch October 12, 2016 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants