Skip to content

Apache Lucene open-source search software

improve the comment about the unused variable Submitted by: Boris Okner

Daniel Naberfe169b138e18
diff --git a/src/java/org/apache/lucene/analysis/ru/RussianStemmer.java b/src/java/org/apache/lucene/analysis/ru/RussianStemmer.java
index a87f50c9967..302ad8ff016 100644
--- a/src/java/org/apache/lucene/analysis/ru/RussianStemmer.java
+++ b/src/java/org/apache/lucene/analysis/ru/RussianStemmer.java
@@ -552,8 +552,9 @@ class RussianStemmer
if (!perfectiveGerund(stemmingZone))
{
reflexive(stemmingZone);
- // variable r is unused, we are just interested in the side effect of
- // adjectival() or verb(), if adjectival() does nothing etc.:
+ // variable r is unused, we are just interested in the flow that gets
+ // created by logical expression: apply adjectival(); if that fails,
+ // apply verb() etc
boolean r =
adjectival(stemmingZone)
|| verb(stemmingZone)