Skip to content

2.x: factor out inner classes from the base reactive types #4360

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

Merged
merged 1 commit into from
Aug 17, 2016

Conversation

akarnokd
Copy link
Member

@akarnokd akarnokd commented Aug 16, 2016

This PR factors out the anonymous inner classes from the base reactive types and introduces the appropriate classes and methods in *Helper enums.

@akarnokd akarnokd added this to the 2.0 RC 1 milestone Aug 16, 2016
@codecov-io
Copy link

Current coverage is 68.65% (diff: 71.45%)

Merging #4360 into 2.x will decrease coverage by <.01%

@@                2.x      #4360   diff @@
==========================================
  Files           434        439     +5   
  Lines         30952      31116   +164   
  Methods           0          0          
  Messages          0          0          
  Branches       4968       4971     +3   
==========================================
+ Hits          21252      21363   +111   
- Misses         7626       7669    +43   
- Partials       2074       2084    +10   

Powered by Codecov. Last update 176346a...3e474d0

}
}

public static <T> Predicate<T> equalsWith(T value) {
Copy link
Contributor

@JakeWharton JakeWharton Aug 17, 2016

Choose a reason for hiding this comment

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

Is there any reason to use these static factories? The nested classes could just be public (or promoted to top-level) and referenced directly.

Copy link
Member Author

Choose a reason for hiding this comment

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

To avoid public namespace cluttering.

Copy link
Member Author

Choose a reason for hiding this comment

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

Please don't refactor this yet; working on repeatWhen/retryWhen fixes.

@JakeWharton
Copy link
Contributor

👍

@akarnokd akarnokd merged commit 6291f59 into ReactiveX:2.x Aug 17, 2016
@akarnokd akarnokd deleted the NoInnerClassesInMain branch August 17, 2016 06:00
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