Skip to content

Commit

Permalink
Array-based container fields are now protected
Browse files Browse the repository at this point in the history
  • Loading branch information
vigna committed Jan 9, 2023
1 parent 7944e1d commit b7656a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions drv/ArrayMap.drv
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@ public class ARRAY_MAP KEY_VALUE_GENERIC extends ABSTRACT_MAP KEY_VALUE_GENERIC

private static final long serialVersionUID = 1L;
/** The keys (valid up to {@link #size}, excluded). */
private transient KEY_TYPE[] key;
protected transient KEY_TYPE[] key;
/** The values (parallel to {@link #key}). */
private transient VALUE_TYPE[] value;
protected transient VALUE_TYPE[] value;
/** The number of valid entries in {@link #key} and {@link #value}. */
private int size;
protected int size;

/** Cached set of entries. */
private transient FastEntrySet KEY_VALUE_GENERIC entries;
protected transient FastEntrySet KEY_VALUE_GENERIC entries;

/** Cached set of keys. */
private transient SET KEY_GENERIC keys;
protected transient SET KEY_GENERIC keys;

/** Cached collection of values. */
private transient VALUE_COLLECTION VALUE_GENERIC values;
protected transient VALUE_COLLECTION VALUE_GENERIC values;

/** Creates a new empty array map with given key and value backing arrays. The resulting map will have as many entries as the given arrays.
*
Expand Down
4 changes: 2 additions & 2 deletions drv/ArraySet.drv
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public class ARRAY_SET KEY_GENERIC extends ABSTRACT_SET KEY_GENERIC implements j

private static final long serialVersionUID = 1L;
/** The backing array (valid up to {@link #size}, excluded). */
private transient KEY_TYPE[] a;
protected transient KEY_TYPE[] a;
/** The number of valid entries in {@link #a}. */
private int size;
protected int size;

/** Creates a new array set using the given backing array. The resulting set will have as many elements as the array.
*
Expand Down

0 comments on commit b7656a0

Please sign in to comment.