3.x: remove getValues() from some subjects/processors by akarnokd · Pull Request #6516 · ReactiveX/RxJava (original) (raw)
The getValue()
and getValues(T[])
methods were a remnant from a time where Subject
and FlowableProcessor
was unifying all state peeking methods for every kind of subject/processor. These have been marked as @Deprecated
in 2.x and are now removed from 3.x. They can be trivially replaced with getValue()
if necessary, for example:
Object value = subject.getValue(); if (value == null) { return new Object[1]; } return new Object[] { value };
Related: #5622