Skip to content
Snippets Groups Projects
Commit 38d45b0c authored by Jason Tedor's avatar Jason Tedor
Browse files

Elasticsearch 5: Mark constant as final

This commit marks a field intended to be treated as a constant as final.
parent b9f8539c
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,7 @@ public class ElasticsearchRestClient extends DB {
return performRequest(restClient, method, endpoint, params, null);
}
private static Header[] emptyHeaders = new Header[0];
private static final Header[] EMPTY_HEADERS = new Header[0];
private static Response performRequest(
final RestClient restClient,
......@@ -156,7 +156,7 @@ public class ElasticsearchRestClient extends DB {
if (entity != null) {
headers = new Header[]{new BasicHeader("content-type", ContentType.APPLICATION_JSON.toString())};
} else {
headers = emptyHeaders;
headers = EMPTY_HEADERS;
}
return restClient.performRequest(
method,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment