Skip to content

Commit 0f6dd5a

Browse files
committed
remove javadoc warnings from cache(); add @SInCE annotation to cache(b)
1 parent 0f12e5f commit 0f6dd5a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

rxjava-core/src/main/java/rx/Observable.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3360,14 +3360,12 @@ public final <B> Observable<List<T>> buffer(Observable<B> boundary, int initialC
33603360
* begin cacheing items. This only happens when the first Subscriber calls the resulting Observable's
33613361
* {@code subscribe} method.
33623362
* <p>
3363-
*
33643363
* <em>Note:</em> You sacrifice the ability to unsubscribe from the origin when you use the {@code cache}
33653364
* Observer so be careful not to use this Observer on Observables that emit an infinite or very large number
33663365
* of items that will use up memory.
33673366
* <p>
33683367
* {@code cache} does not operate by default on a particular {@link Scheduler}.
33693368
*
3370-
* @warn description may be out-of-date
33713369
* @return an Observable that, when first subscribed to, caches all of its items and notifications for the
33723370
* benefit of subsequent subscribers
33733371
* @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#cache">RxJava Wiki: cache()</a>
@@ -3391,18 +3389,17 @@ public final Observable<T> cache() {
33913389
* begin cacheing items. This only happens when the first Subscriber calls the resulting Observable's
33923390
* {@code subscribe} method.
33933391
* <p>
3394-
*
33953392
* <em>Note:</em> You sacrifice the ability to unsubscribe from the origin when you use the {@code cache}
33963393
* Observer so be careful not to use this Observer on Observables that emit an infinite or very large number
33973394
* of items that will use up memory.
33983395
* <p>
33993396
* {@code cache} does not operate by default on a particular {@link Scheduler}.
34003397
*
3401-
* @warn description may be out-of-date
34023398
* @param capacity hint for number of items to cache (for optimizing underlying data structure)
34033399
* @return an Observable that, when first subscribed to, caches all of its items and notifications for the
34043400
* benefit of subsequent subscribers
34053401
* @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#cache">RxJava Wiki: cache()</a>
3402+
* @since 0.20
34063403
*/
34073404
public final Observable<T> cache(int capacity) {
34083405
return create(new OnSubscribeCache<T>(this, capacity));

0 commit comments

Comments
 (0)