You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[2.9.7] Regression formatting return-statement with parentheses #921
Where observable is an RxJava io.reactivex.rxjava3.core.Observable. The method's signature is:
Observable<IImmutableMap<String, Object>> io.reactivex.rxjava3.core.Observable.doOnSubscribe(
@NonNull Consumer<? super Disposable> onSubscribe
)
Note that the method argument is a Consumer. Adding parentheses around the body (as 2.10.0 does - observable.doOnSubscribe(disposable -> (querySubscription = disposable));) makes it not compile:
Void methods cannot return a value
TIL that there is a difference between these two lines. 😄 But this is a regression nonetheless.
Activity
boris-petrov commentedon Jun 23, 2026
@jtkiesel thanks for fixing this and congrats on the new release! However, I believe it broke some things. For example:
Where
observableis an RxJavaio.reactivex.rxjava3.core.Observable. The method's signature is:Note that the method argument is a
Consumer. Adding parentheses around the body (as 2.10.0 does -observable.doOnSubscribe(disposable -> (querySubscription = disposable));) makes it not compile:TIL that there is a difference between these two lines. 😄 But this is a regression nonetheless.
This may or may not be similar to #946.