2.x: WIP removes anonymous inner classes.#5174
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.x #5174 +/- ##
===========================================
- Coverage 96% 95.96% -0.04%
+ Complexity 5663 5654 -9
===========================================
Files 621 621
Lines 39974 40247 +273
Branches 5610 5610
===========================================
+ Hits 38378 38625 +247
- Misses 630 649 +19
- Partials 966 973 +7
Continue to review full report at Codecov.
|
akarnokd
left a comment
There was a problem hiding this comment.
Looks good so far, minus a couple of private modifiers that need to be removed.
| throw ExceptionHelper.wrapOrThrow(NotificationLite.getError(buf)); | ||
| } | ||
| return NotificationLite.getValue(buf); | ||
| private class Iterator implements java.util.Iterator<T> { |
| return true; | ||
| } | ||
|
|
||
| private final class RemoveFromBuffer implements Runnable { |
| } | ||
| } | ||
|
|
||
| private final class SingletonArrayFunc implements Function<T, R> { |
| w.dispose(); | ||
| } | ||
|
|
||
| private final class OnNext implements Runnable { |
| } | ||
| } | ||
|
|
||
| private class OnError implements Runnable { |
| dispose(); | ||
| } | ||
|
|
||
| private final class TimeoutTask implements Runnable { |
| } | ||
| } | ||
|
|
||
| private final class Cancellation implements Runnable { |
| } | ||
| } | ||
|
|
||
| private final class Completion implements Runnable { |
| } | ||
| } | ||
|
|
||
| private final class FlowableWithLatestSubscriber<U> implements FlowableSubscriber<U> { |
| } | ||
| } | ||
|
|
||
| private final class SingletonArrayFunc implements Function<T, R> { |
akarnokd
left a comment
There was a problem hiding this comment.
A couple of places still require attention.
| other.subscribe(otherSubscriber); | ||
| } | ||
|
|
||
| private final class DelaySubscriber implements FlowableSubscriber<U> { |
| main.subscribe(new OnCompleteSubscriber()); | ||
| } | ||
|
|
||
| private class DelaySubscription implements Subscription { |
| co.connect(new DisposableConsumer(srw)); | ||
| } | ||
|
|
||
| private final class DisposableConsumer implements Consumer<Disposable> { |
|
@akarnokd on it |
akarnokd
left a comment
There was a problem hiding this comment.
Still two missing. Look at the main page where there should be a bunch of collapsed comment along with the remaining problems in FlowableDelay.
| } | ||
| } | ||
|
|
||
| private class OnError implements Runnable { |
| } | ||
| } | ||
|
|
||
| private class OnComplete implements Runnable { |
|
Great job! I'll merge this so the changes don't get too numerous. |
This is a WIP. Since the changes are big, an incremental review and PR was recommended by @akarnokd