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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user