lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r830866 - /lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/analysis/StopFilter.java
Date Thu, 29 Oct 2009 09:16:22 GMT
Author: uschindler
Date: Thu Oct 29 09:16:16 2009
New Revision: 830866

URL: http://svn.apache.org/viewvc?rev=830866&view=rev
Log:
no branching needed, return value of version compare is already boolean

Modified:
    lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/analysis/StopFilter.java

Modified: lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/analysis/StopFilter.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/analysis/StopFilter.java?rev=830866&r1=830865&r2=830866&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/analysis/StopFilter.java (original)
+++ lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/analysis/StopFilter.java Thu
Oct 29 09:16:16 2009
@@ -251,11 +251,7 @@
    * or later, it returns true.
    */
   public static boolean getEnablePositionIncrementsVersionDefault(Version matchVersion) {
-    if (matchVersion.onOrAfter(Version.LUCENE_29)) {
-      return true;
-    } else {
-      return false;
-    }
+    return (matchVersion.onOrAfter(Version.LUCENE_29));
   }
 
   /**



Mime
View raw message