You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2011/01/25 19:39:49 UTC

svn commit: r1063394 - /lucene/dev/branches/branch_3x/lucene/backwards/src/test/org/apache/lucene/search/QueryUtils.java

Author: mikemccand
Date: Tue Jan 25 18:39:48 2011
New Revision: 1063394

URL: http://svn.apache.org/viewvc?rev=1063394&view=rev
Log:
LUCENE-2010: don't need null check here

Modified:
    lucene/dev/branches/branch_3x/lucene/backwards/src/test/org/apache/lucene/search/QueryUtils.java

Modified: lucene/dev/branches/branch_3x/lucene/backwards/src/test/org/apache/lucene/search/QueryUtils.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/backwards/src/test/org/apache/lucene/search/QueryUtils.java?rev=1063394&r1=1063393&r2=1063394&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/backwards/src/test/org/apache/lucene/search/QueryUtils.java (original)
+++ lucene/dev/branches/branch_3x/lucene/backwards/src/test/org/apache/lucene/search/QueryUtils.java Tue Jan 25 18:39:48 2011
@@ -213,10 +213,8 @@ public class QueryUtils {
         // Carefully invoke what is a package-private (test
         // only, internal) method on IndexWriter:
         Method m = IndexWriter.class.getDeclaredMethod("keepFullyDeletedSegments");
-        if (m != null) {
-          m.setAccessible(true);
-          m.invoke(w);
-        }
+        m.setAccessible(true);
+        m.invoke(w);
       } catch (Exception e) {
         // Should not happen?
         throw new RuntimeException(e);