@@ -187,29 +187,29 @@ public class ColognePhonetic implements StringEncoder {
187187 * However, it is not shared between threads, as it is constructed on demand
188188 * by the method {@link ColognePhonetic#colognePhonetic(String)}
189189 */
190- abstract static class CologneBuffer {
190+ private abstract static class CologneBuffer {
191191
192192 protected final char [] data ;
193193
194194 protected int length ;
195195
196- CologneBuffer (final char [] data ) {
196+ protected CologneBuffer (final char [] data ) {
197197 this .data = data ;
198198 this .length = data .length ;
199199 }
200200
201- CologneBuffer (final int buffSize ) {
201+ protected CologneBuffer (final int buffSize ) {
202202 this .data = new char [buffSize ];
203203 this .length = 0 ;
204204 }
205205
206206 protected abstract char [] copyData (int start , int length );
207207
208- public boolean isEmpty () {
208+ boolean isEmpty () {
209209 return length () == 0 ;
210210 }
211211
212- public int length () {
212+ int length () {
213213 return length ;
214214 }
215215
@@ -232,15 +232,15 @@ protected char[] copyData(final int start, final int length) {
232232 return newData ;
233233 }
234234
235- public char getNextChar () {
235+ char getNextChar () {
236236 return data [getNextPos ()];
237237 }
238238
239239 protected int getNextPos () {
240240 return data .length - length ;
241241 }
242242
243- public char removeNext () {
243+ char removeNext () {
244244 final char ch = getNextChar ();
245245 length --;
246246 return ch ;
@@ -269,7 +269,7 @@ protected char[] copyData(final int start, final int length) {
269269 *
270270 * @param code the code to store.
271271 */
272- public void put (final char code ) {
272+ void put (final char code ) {
273273 final boolean accept = code != CHAR_IGNORE ;
274274 final boolean nonZ = code != '0' ;
275275 if (accept && lastCode != code && (nonZ || length == 0 )) {
0 commit comments