@@ -67,15 +67,15 @@ public final class ByteQuadsCanonicalizer
67
67
* Reference to the root symbol table, for child tables, so
68
68
* that they can merge table information back as necessary.
69
69
*/
70
- final private ByteQuadsCanonicalizer _parent ;
70
+ final protected ByteQuadsCanonicalizer _parent ;
71
71
72
72
/**
73
73
* Member that is only used by the root table instance: root
74
74
* passes immutable state info child instances, and children
75
75
* may return new state if they add entries to the table.
76
76
* Child tables do NOT use the reference.
77
77
*/
78
- final private AtomicReference <TableInfo > _tableInfo ;
78
+ final protected AtomicReference <TableInfo > _tableInfo ;
79
79
80
80
/**
81
81
* Seed value we use as the base to make hash codes non-static between
@@ -84,7 +84,7 @@ public final class ByteQuadsCanonicalizer
84
84
* This is done for security reasons, to avoid potential DoS attack via
85
85
* hash collisions.
86
86
*/
87
- final private int _seed ;
87
+ final protected int _seed ;
88
88
89
89
/*
90
90
/**********************************************************
@@ -99,15 +99,15 @@ public final class ByteQuadsCanonicalizer
99
99
* NOTE: non-final to allow disabling intern()ing in case of excessive
100
100
* collisions.
101
101
*/
102
- private boolean _intern ;
102
+ protected boolean _intern ;
103
103
104
104
/**
105
105
* Flag that indicates whether we should throw an exception if enough
106
106
* hash collisions are detected (true); or just worked around (false).
107
107
*
108
108
* @since 2.4
109
109
*/
110
- private final boolean _failOnDoS ;
110
+ protected final boolean _failOnDoS ;
111
111
112
112
/*
113
113
/**********************************************************
@@ -121,25 +121,25 @@ public final class ByteQuadsCanonicalizer
121
121
* structure (details of which may be tweaked depending on expected rates
122
122
* of collisions).
123
123
*/
124
- private int [] _hashArea ;
124
+ protected int [] _hashArea ;
125
125
126
126
/**
127
127
* Number of slots for primary entries within {@link #_hashArea}; which is
128
128
* at most <code>1/8</code> of actual size of the underlying array (4-int slots,
129
129
* primary covers only half of the area; plus, additional area for longer
130
130
* symbols after hash area).
131
131
*/
132
- private int _hashSize ;
132
+ protected int _hashSize ;
133
133
134
134
/**
135
135
* Offset within {@link #_hashArea} where secondary entries start
136
136
*/
137
- private int _secondaryStart ;
137
+ protected int _secondaryStart ;
138
138
139
139
/**
140
140
* Offset within {@link #_hashArea} where tertiary entries start
141
141
*/
142
- private int _tertiaryStart ;
142
+ protected int _tertiaryStart ;
143
143
144
144
/**
145
145
* Constant that determines size of buckets for tertiary entries:
@@ -150,20 +150,20 @@ public final class ByteQuadsCanonicalizer
150
150
* Default value is 2, for buckets of 4 slots; grows bigger with
151
151
* bigger table sizes.
152
152
*/
153
- private int _tertiaryShift ;
153
+ protected int _tertiaryShift ;
154
154
155
155
/**
156
156
* Total number of Strings in the symbol table; only used for child tables.
157
157
*/
158
- private int _count ;
158
+ protected int _count ;
159
159
160
160
/**
161
161
* Array that contains <code>String</code> instances matching
162
162
* entries in {@link #_hashArea}.
163
163
* Contains nulls for unused entries. Note that this size is twice
164
164
* that of {@link #_hashArea}
165
165
*/
166
- private String [] _names ;
166
+ protected String [] _names ;
167
167
168
168
/*
169
169
/**********************************************************
@@ -176,7 +176,7 @@ public final class ByteQuadsCanonicalizer
176
176
* for more spilled over entries (if any).
177
177
* Spill over area is within fixed-size portion of {@link #_hashArea}.
178
178
*/
179
- private int _spilloverEnd ;
179
+ protected int _spilloverEnd ;
180
180
181
181
/**
182
182
* Offset within {@link #_hashArea} that follows main slots and contains
@@ -186,7 +186,7 @@ public final class ByteQuadsCanonicalizer
186
186
* Note that long name area follows immediately after the fixed-size
187
187
* main hash area ({@link #_hashArea}).
188
188
*/
189
- private int _longNameOffset ;
189
+ protected int _longNameOffset ;
190
190
191
191
/*
192
192
/**********************************************************
@@ -207,7 +207,7 @@ public final class ByteQuadsCanonicalizer
207
207
* and when adding new collision list queues (i.e. creating a new
208
208
* collision list head entry)
209
209
*/
210
- private boolean _hashShared ;
210
+ protected boolean _hashShared ;
211
211
212
212
/*
213
213
/**********************************************************
0 commit comments