You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/06/27 12:30:39 UTC
[commons-text] branch master updated: fixed error message to make set-theoretic sense (#438)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git
The following commit(s) were added to refs/heads/master by this push:
new c379d452 fixed error message to make set-theoretic sense (#438)
c379d452 is described below
commit c379d452d3e2e13cdf414e8a08bc47fa278b7a47
Author: Dimitrios Efthymiou <ef...@gmail.com>
AuthorDate: Tue Jun 27 13:30:33 2023 +0100
fixed error message to make set-theoretic sense (#438)
---
.../java/org/apache/commons/text/similarity/IntersectionResult.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/text/similarity/IntersectionResult.java b/src/main/java/org/apache/commons/text/similarity/IntersectionResult.java
index 711af57a..ebdade17 100644
--- a/src/main/java/org/apache/commons/text/similarity/IntersectionResult.java
+++ b/src/main/java/org/apache/commons/text/similarity/IntersectionResult.java
@@ -63,7 +63,7 @@ public class IntersectionResult {
throw new IllegalArgumentException("Set size |B| is not positive: " + sizeB);
}
if (intersection < 0 || intersection > Math.min(sizeA, sizeB)) {
- throw new IllegalArgumentException("Invalid intersection of |A| and |B|: " + intersection);
+ throw new IllegalArgumentException("Invalid intersection of A and B: " + intersection);
}
this.sizeA = sizeA;
this.sizeB = sizeB;