From bd6e9e8474db45a6dd0f13e9577aa8822fc44f17 Mon Sep 17 00:00:00 2001 From: John Carlson Date: Tue, 6 Dec 2016 18:16:15 -0600 Subject: [PATCH] Use t instead of value to allow for IDE naming --- src/main/java/rx/SingleSubscriber.java | 4 ++-- src/main/java/rx/observers/SafeSubscriber.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/rx/SingleSubscriber.java b/src/main/java/rx/SingleSubscriber.java index 53e9a70faa..0860dd331f 100644 --- a/src/main/java/rx/SingleSubscriber.java +++ b/src/main/java/rx/SingleSubscriber.java @@ -43,10 +43,10 @@ public abstract class SingleSubscriber implements Subscription { *

* The {@link Single} will not call this method if it calls {@link #onError}. * - * @param value + * @param t * the item emitted by the Single */ - public abstract void onSuccess(T value); + public abstract void onSuccess(T t); /** * Notifies the SingleSubscriber that the {@link Single} has experienced an error condition. diff --git a/src/main/java/rx/observers/SafeSubscriber.java b/src/main/java/rx/observers/SafeSubscriber.java index 717946c032..16027b0d52 100644 --- a/src/main/java/rx/observers/SafeSubscriber.java +++ b/src/main/java/rx/observers/SafeSubscriber.java @@ -124,14 +124,14 @@ public void onError(Throwable e) { * The {@code Observable} will not call this method again after it calls either {@link #onCompleted} or * {@link #onError}. * - * @param args + * @param t * the item emitted by the Observable */ @Override - public void onNext(T args) { + public void onNext(T t) { try { if (!done) { - actual.onNext(args); + actual.onNext(t); } } catch (Throwable e) { // we handle here instead of another method so we don't add stacks to the frame