This is an automated email from the ASF dual-hosted git repository.

krickert pushed a commit to branch wordnet-expansion
in repository https://gitbox.apache.org/repos/asf/opennlp.git

commit d279afc5f65f4a475c23ef4499b8629dd83393f3
Author: Kristian Rickert <[email protected]>
AuthorDate: Mon Jul 13 03:26:21 2026 -0400

    OPENNLP-1887: Use IllegalArgumentException for null arguments and trim 
commentary
    
    Aligns the expander null-argument validation with the project convention 
and removes remaining rationale commentary.
---
 .../src/main/java/opennlp/wordnet/LexicalExpander.java                | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/opennlp-extensions/opennlp-wordnet/src/main/java/opennlp/wordnet/LexicalExpander.java
 
b/opennlp-extensions/opennlp-wordnet/src/main/java/opennlp/wordnet/LexicalExpander.java
index 75a9ca42d..a0e787bfc 100644
--- 
a/opennlp-extensions/opennlp-wordnet/src/main/java/opennlp/wordnet/LexicalExpander.java
+++ 
b/opennlp-extensions/opennlp-wordnet/src/main/java/opennlp/wordnet/LexicalExpander.java
@@ -272,6 +272,7 @@ public final class LexicalExpander {
     }
   }
 
+  /** Folds a term to its case-insensitive comparison key. */
   private static String fold(String term) {
     return term.toLowerCase(Locale.ROOT);
   }
@@ -343,8 +344,7 @@ public final class LexicalExpander {
     }
 
     /**
-     * Configures whether direct hyponyms are included. They are off by 
default because they
-     * broaden queries.
+     * Configures whether direct hyponyms are included; off by default.
      *
      * @param includeHyponyms Whether to include direct hyponyms.
      * @return This builder.

Reply via email to