lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1063394 - /lucene/dev/branches/branch_3x/lucene/backwards/src/test/org/apache/lucene/search/QueryUtils.java
Date Tue, 25 Jan 2011 18:39:49 GMT
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);



Mime
View raw message