You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While developing a test for my last pull request, I encountered a problem with the comparison of Location objects.
It is not symmetric, i. e., the order of the objects of interest is relevant. This happens when only one of the objects has null as id or coord .
While developing a test for my last pull request, I encountered a problem with the comparison of Location objects.
It is not symmetric, i. e., the order of the objects of interest is relevant. This happens when only one of the objects has
null
asid
orcoord
.Example:
Define test stations:
Now:
This is unintuitive to use and mathematically unpleasing.
I guess the problem is at that line (and later for
coord
resp.):public-transport-enabler/src/de/schildbach/pte/dto/Location.java
Line 164 in 5f0f872
There are pros and cons on which logical operator to use here when fixing.
The text was updated successfully, but these errors were encountered: