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() {
189189
190190 @ Override
191191 public boolean equals (Object obj ) {
192- if (obj == null )
192+ if (obj == null ) {
193193 return false ;
194- if (this == obj )
194+ }
195+
196+ if (this == obj ) {
195197 return true ;
196- if (obj .getClass () != getClass ())
198+ }
199+
200+ if (obj .getClass () != getClass ()) {
197201 return false ;
202+ }
203+
198204 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 ())) {
200210 return false ;
201- if (hasValue () && !getValue ().equals (notification .getValue ()))
211+ }
212+
213+ if (hasThrowable () && !getThrowable ().equals (notification .getThrowable ())) {
202214 return false ;
203- if (hasThrowable () && !getThrowable ().equals (notification .getThrowable ()))
215+ }
216+
217+ if (!hasValue () && !hasThrowable () && notification .hasValue ()) {
204218 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+
210225 return true ;
211226 }
212227}
You can’t perform that action at this time.
0 commit comments