From df3922a22aefb94c8b8c3fa991da456871ed8ccc Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Mon, 26 Aug 2013 15:42:19 +0200 Subject: [PATCH] Small cleanup --- .../integration/percolator/RecoveryPercolatorTests.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/test/java/org/elasticsearch/test/integration/percolator/RecoveryPercolatorTests.java b/src/test/java/org/elasticsearch/test/integration/percolator/RecoveryPercolatorTests.java index cea7e72c3b7..39f56e9dbae 100644 --- a/src/test/java/org/elasticsearch/test/integration/percolator/RecoveryPercolatorTests.java +++ b/src/test/java/org/elasticsearch/test/integration/percolator/RecoveryPercolatorTests.java @@ -39,7 +39,6 @@ import org.elasticsearch.test.integration.AbstractNodesTests; import org.junit.After; import org.junit.Test; -import java.io.IOException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; @@ -317,11 +316,7 @@ public class RecoveryPercolatorTests extends AbstractNodesTests { @Override public void run() { try { - XContentBuilder doc = null; - try { - doc = jsonBuilder().startObject().field("field", "a").endObject(); - } catch (IOException e) {} - + XContentBuilder doc = jsonBuilder().startObject().field("field", "a").endObject(); while (run.get()) { NodesInfoResponse nodesInfoResponse = client.admin().cluster().prepareNodesInfo() .execute().actionGet();