From 7d28fe8e9eb88b423fdab23eafecd255b9ea933e Mon Sep 17 00:00:00 2001 From: Dave Borowitz Date: Fri, 5 Sep 2014 15:30:51 -0700 Subject: [PATCH] Lucene: Fix deprecated IndexWriter.close() call Change-Id: Id5296a32e6d3d6ef62e02b0492875528d06b5041 --- .../src/main/java/com/google/gerrit/lucene/SubIndex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerrit-lucene/src/main/java/com/google/gerrit/lucene/SubIndex.java b/gerrit-lucene/src/main/java/com/google/gerrit/lucene/SubIndex.java index 4ee3bf4c88..688835a34d 100644 --- a/gerrit-lucene/src/main/java/com/google/gerrit/lucene/SubIndex.java +++ b/gerrit-lucene/src/main/java/com/google/gerrit/lucene/SubIndex.java @@ -159,7 +159,7 @@ class SubIndex { try { writer.getIndexWriter().commit(); try { - writer.getIndexWriter().close(true); + writer.getIndexWriter().close(); } catch (AlreadyClosedException e) { // Ignore. }