File tree Expand file tree Collapse file tree 1 file changed +26
-11
lines changed Expand file tree Collapse file tree 1 file changed +26
-11
lines changed Original file line number Diff line number Diff line change @@ -189,24 +189,39 @@ public int hashCode() {
189
189
190
190
@ Override
191
191
public boolean equals (Object obj ) {
192
- if (obj == null )
192
+ if (obj == null ) {
193
193
return false ;
194
- if (this == obj )
194
+ }
195
+
196
+ if (this == obj ) {
195
197
return true ;
196
- if (obj .getClass () != getClass ())
198
+ }
199
+
200
+ if (obj .getClass () != getClass ()) {
197
201
return false ;
202
+ }
203
+
198
204
Notification <?> notification = (Notification <?>) obj ;
199
- if (notification .getKind () != getKind ())
205
+ if (notification .getKind () != getKind ()) {
206
+ return false ;
207
+ }
208
+
209
+ if (hasValue () && !getValue ().equals (notification .getValue ())) {
200
210
return false ;
201
- if (hasValue () && !getValue ().equals (notification .getValue ()))
211
+ }
212
+
213
+ if (hasThrowable () && !getThrowable ().equals (notification .getThrowable ())) {
202
214
return false ;
203
- if (hasThrowable () && !getThrowable ().equals (notification .getThrowable ()))
215
+ }
216
+
217
+ if (!hasValue () && !hasThrowable () && notification .hasValue ()) {
204
218
return false ;
205
- if (!hasValue () && !hasThrowable () && notification .hasValue ())
206
- return false ;
207
- if (!hasValue () && !hasThrowable () && notification .hasThrowable ())
208
- return false ;
209
-
219
+ }
220
+
221
+ if (!hasValue () && !hasThrowable () && notification .hasThrowable ()) {
222
+ return false ;
223
+ }
224
+
210
225
return true ;
211
226
}
212
227
}
You can’t perform that action at this time.
0 commit comments