File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
rxjava-core/src/main/java/rx Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public boolean hasValue() {
91
91
*
92
92
* @return a value indicating whether this notification has an exception.
93
93
*/
94
- public boolean hasException () {
94
+ public boolean hasThrowable () {
95
95
return isOnError () && throwable != null ;
96
96
}
97
97
@@ -125,7 +125,7 @@ public String toString() {
125
125
StringBuilder str = new StringBuilder ("[" ).append (super .toString ()).append (" " ).append (getKind ());
126
126
if (hasValue ())
127
127
str .append (" " ).append (getValue ());
128
- if (hasException ())
128
+ if (hasThrowable ())
129
129
str .append (" " ).append (getThrowable ().getMessage ());
130
130
str .append ("]" );
131
131
return str .toString ();
@@ -136,7 +136,7 @@ public int hashCode() {
136
136
int hash = getKind ().hashCode ();
137
137
if (hasValue ())
138
138
hash = hash * 31 + getValue ().hashCode ();
139
- if (hasException ())
139
+ if (hasThrowable ())
140
140
hash = hash * 31 + getThrowable ().hashCode ();
141
141
return hash ;
142
142
}
@@ -154,7 +154,7 @@ public boolean equals(Object obj) {
154
154
return false ;
155
155
if (hasValue () && !getValue ().equals (notification .getValue ()))
156
156
return false ;
157
- if (hasException () && !getThrowable ().equals (notification .getThrowable ()))
157
+ if (hasThrowable () && !getThrowable ().equals (notification .getThrowable ()))
158
158
return false ;
159
159
return true ;
160
160
}
You can’t perform that action at this time.
0 commit comments