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

Fix vararg issues reported in https://github.com/Netflix/RxJava/issues/359 #361

Merged
merged 7 commits into from
Sep 10, 2013

Conversation

benjchristensen
Copy link
Member

Branch working on #359

I'll continue committing to this until all the varargs are replaced.

ReactiveX#359 Varargs cause compiler warnings

As part of this I also changed this:

```java
public static <T> Observable<T> concat(Observable<Observable<? extends T>> observables)
```

to

```java
public static <T> Observable<T> concat(Observable<Observable<T>> observables)
```

I documented the reasoning of this at ReactiveX#360 (comment)
@cloudbees-pull-request-builder

RxJava-pull-requests #253 SUCCESS
This pull request looks good

@benjchristensen
Copy link
Member Author

This seems to be working well so am merging it. This removes all vararg usage. It does increase surface area with multiple-arity overloads, but it's clean and displays well in an IDE.

I have chosen to use Observable<Observable<T>> on all of the overloads instead of Iterable<Observable<T>> since Observable is more generic and fits the Rx model. An Observable<Observable<T>> can easily be created from Iterable<Observable<T>> using Observable.from. If this is not liked we can add the Iterable overloads as well.

screen shot 2013-09-09 at 5 49 25 pm

benjchristensen added a commit that referenced this pull request Sep 10, 2013
@benjchristensen benjchristensen merged commit 96feb27 into ReactiveX:master Sep 10, 2013
@cloudbees-pull-request-builder

RxJava-pull-requests #254 SUCCESS
This pull request looks good

rickbw pushed a commit to rickbw/RxJava that referenced this pull request Jan 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants