Skip to content
Permalink
Browse files
Simple syntax for array creation.
  • Loading branch information
garydgregory committed Mar 4, 2022
1 parent 5588a9b commit 2431972cc031127c5916734ab79509f9f5fe4190
Showing 4 changed files with 4 additions and 4 deletions.
@@ -41,7 +41,7 @@
*/
public class ComparatorUtils {

private static final Comparator[] EMPTY_COMPARATOR_ARRAY = new Comparator[0];
private static final Comparator[] EMPTY_COMPARATOR_ARRAY = {};

/**
* Don't allow instances.
@@ -37,7 +37,7 @@
*/
public class HasherBloomFilter extends AbstractBloomFilter {
/** The bit representation for an empty Bloom filter. */
private static final long[] EMPTY = new long[0];
private static final long[] EMPTY = {};

/**
* The internal hasher representation.
@@ -33,7 +33,7 @@
*/
public class ChainedTransformer<T> implements Transformer<T, T>, Serializable {

private static final Transformer[] EMPTY_TRANSFORMER_ARRAY = new Transformer[0];
private static final Transformer[] EMPTY_TRANSFORMER_ARRAY = {};

/** Serial version UID */
private static final long serialVersionUID = 3514945074733160196L;
@@ -47,7 +47,7 @@
*/
public class CompositeMap<K, V> extends AbstractIterableMap<K, V> implements Serializable {

private static final Map[] EMPTY_MAP_ARRAY = new Map[0];
private static final Map[] EMPTY_MAP_ARRAY = {};

/** Serialization version */
private static final long serialVersionUID = -6096931280583808322L;

0 comments on commit 2431972

Please sign in to comment.