Skip to content

Commit

Permalink
Use t instead of value to allow for IDE naming (#4908)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jawnnypoo authored and akarnokd committed Dec 7, 2016
1 parent 0b37a7e commit 57a9c09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/rx/SingleSubscriber.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public abstract class SingleSubscriber<T> implements Subscription {
* <p>
* 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.
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/rx/observers/SafeSubscriber.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57a9c09

Please sign in to comment.