You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2024/01/29 18:20:29 UTC
(causeway) branch master updated: CAUSEWAY-2297: internal _Assets: fixes flipped logic (number equality)
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git
The following commit(s) were added to refs/heads/master by this push:
new 3e5dc40400 CAUSEWAY-2297: internal _Assets: fixes flipped logic (number equality)
3e5dc40400 is described below
commit 3e5dc4040081b65a39d0273cfad2e77ce26065f1
Author: Andi Huber <ah...@apache.org>
AuthorDate: Mon Jan 29 19:20:25 2024 +0100
CAUSEWAY-2297: internal _Assets: fixes flipped logic (number equality)
---
.../java/org/apache/causeway/commons/internal/assertions/_Assert.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons/src/main/java/org/apache/causeway/commons/internal/assertions/_Assert.java b/commons/src/main/java/org/apache/causeway/commons/internal/assertions/_Assert.java
index 64cd88afc2..795fd7cd96 100644
--- a/commons/src/main/java/org/apache/causeway/commons/internal/assertions/_Assert.java
+++ b/commons/src/main/java/org/apache/causeway/commons/internal/assertions/_Assert.java
@@ -293,7 +293,7 @@ public final class _Assert {
String.valueOf(delta));
}
if((Double.doubleToLongBits(a) != Double.doubleToLongBits(b))
- || Math.abs(a - b) <= delta) {
+ || Math.abs(a - b) > delta) {
throw _Exceptions.assertionError(
"%snumbers %s and %s are not equal within delta %s",
_Strings.nonEmpty(lazyMessage.get()).map(msg->msg + ": ").orElse(""),