-
assigned issue to
Potentially lossy translations used in AltTranslation.java and QueryResult.java
Issue #903
resolved
Float.compare(int, int) is lossy. For example, Float.compare(Integer.MAX_VALUE, Integer.MAX_VALUE-1) == 0
.
The following can be replaced with Integer.compare
https://bitbucket.org/okapiframework/okapi/src/990515aa9b7c7e77f6f51e94d4bdd8fcf0c2ebe0/okapi/core/src/main/java/net/sf/okapi/common/annotation/AltTranslation.java#lines-379 https://bitbucket.org/okapiframework/okapi/src/990515aa9b7c7e77f6f51e94d4bdd8fcf0c2ebe0/okapi/core/src/main/java/net/sf/okapi/common/query/QueryResult.java#lines-214 https://bitbucket.org/okapiframework/okapi/src/990515aa9b7c7e77f6f51e94d4bdd8fcf0c2ebe0/okapi/core/src/main/java/net/sf/okapi/common/query/QueryResult.java#lines-228
Comments (3)
-
-
- changed milestone to 1.40.0
-
- changed status to resolved
- Log in to comment
Good suggestion.