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

Replace the Java 7 AssertionError(message, cause) with initCause #3000

Merged
merged 2 commits into from
Jun 2, 2015

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Jun 2, 2015

AssertionError(message, cause) is a Java 7 API. This PR uses RuntimeException to replace it, just like assertNoErrors.

@@ -114,7 +114,7 @@ public void call(SubjectObserver<T> o) {
boolean skipFinal = false;
try {
for (;;) {
int idx = o.index();
int idx = o.<Integer>index();
Copy link
Member Author

Choose a reason for hiding this comment

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

Java 6 compiler is not smart enough to infer Integer.

@akarnokd
Copy link
Member

akarnokd commented Jun 2, 2015

Great, thanks!

akarnokd added a commit that referenced this pull request Jun 2, 2015
Replace the Java 7 AssertionError(message, cause) with RuntimeException
@akarnokd akarnokd merged commit a178357 into ReactiveX:1.x Jun 2, 2015
@zsxwing zsxwing changed the title Replace the Java 7 AssertionError(message, cause) with RuntimeException Replace the Java 7 AssertionError(message, cause) with initCause Jun 2, 2015
@zsxwing zsxwing deleted the java6 branch June 2, 2015 22:46
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

2 participants