Use compact array initialization syntax.
This commit is contained in:
parent
68c378bb7c
commit
445d4271f9
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue