ElasticIndexIT: replace member with local variable

As that (static) 'container' member was not read elsewhere than in this
static method. Thus fix the corresponding IDEA warning.

Change-Id: Ie38e14ed13354aa91e313e141e1959a6752f24cf
This commit is contained in:
Marco Miller
2018-07-13 13:21:05 -04:00
parent 5b3d230a79
commit 00d1bab5d2

View File

@@ -24,11 +24,10 @@ import java.util.UUID;
import org.eclipse.jgit.lib.Config;
public class ElasticIndexIT extends AbstractIndexTests {
private static ElasticContainer<?> container;
private static Config getConfig(ElasticVersion version) {
ElasticNodeInfo elasticNodeInfo;
container = ElasticContainer.createAndStart(version);
ElasticContainer<?> container = ElasticContainer.createAndStart(version);
elasticNodeInfo = new ElasticNodeInfo(container.getHttpHost().getPort());
String indicesPrefix = UUID.randomUUID().toString();
Config cfg = new Config();