Use compact array initialization syntax.

This commit is contained in:
Gary Gregory 2021-10-11 14:49:16 -04:00 committed by Oleg Kalnichevski
parent 68c378bb7c
commit 445d4271f9
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ public class MultipartEntityBuilder {
/**
* An empty immutable {@code NameValuePair} array.
*/
private static final NameValuePair[] EMPTY_NAME_VALUE_ARRAY = new NameValuePair[0];
private static final NameValuePair[] EMPTY_NAME_VALUE_ARRAY = {};
public static MultipartEntityBuilder create() {
return new MultipartEntityBuilder();

View File

@ -78,7 +78,7 @@ public final class ContentCompressionExec implements ExecChainHandler {
/**
* An empty immutable {@code String} array.
*/
private static final String[] EMPTY_STRING_ARRAY = new String[0];
private static final String[] EMPTY_STRING_ARRAY = {};
public ContentCompressionExec(
final List<String> acceptEncoding,