|
183 | 183 | public class ColognePhonetic implements StringEncoder { |
184 | 184 |
|
185 | 185 | /** |
186 | | - * This class is not thread-safe; the field {@link #length} is mutable. |
187 | | - * However, it is not shared between threads, as it is constructed on demand |
188 | | - * by the method {@link ColognePhonetic#colognePhonetic(String)} |
| 186 | + * This class is not thread-safe; the field {@link #length} is mutable. However, it is not shared between threads, as it is constructed on demand by the |
| 187 | + * method {@link ColognePhonetic#colognePhonetic(String)}. |
189 | 188 | */ |
190 | 189 | private abstract static class CologneBuffer { |
191 | 190 |
|
@@ -262,10 +261,8 @@ protected char[] copyData(final int start, final int length) { |
262 | 261 | } |
263 | 262 |
|
264 | 263 | /** |
265 | | - * Stores the next code in the output buffer, keeping track of the previous code. |
266 | | - * '0' is only stored if it is the first entry. |
267 | | - * Ignored chars are never stored. |
268 | | - * If the code is the same as the last code (whether stored or not) it is not stored. |
| 264 | + * Stores the next code in the output buffer, keeping track of the previous code. '0' is only stored if it is the first entry. Ignored chars are never |
| 265 | + * stored. If the code is the same as the last code (whether stored or not) it is not stored. |
269 | 266 | * |
270 | 267 | * @param code the code to store. |
271 | 268 | */ |
@@ -418,16 +415,14 @@ public String encode(final String text) { |
418 | 415 | * |
419 | 416 | * @param text1 source text to encode before testing for equality. |
420 | 417 | * @param text2 source text to encode before testing for equality. |
421 | | - * @return {@code true} if the encoding the first string equals the encoding of the second string, {@code false} |
422 | | - * otherwise. |
| 418 | + * @return {@code true} if the encoding the first string equals the encoding of the second string, {@code false} otherwise. |
423 | 419 | */ |
424 | 420 | public boolean isEncodeEqual(final String text1, final String text2) { |
425 | 421 | return colognePhonetic(text1).equals(colognePhonetic(text2)); |
426 | 422 | } |
427 | 423 |
|
428 | 424 | /** |
429 | | - * Converts the string to upper case and replaces Germanic umlaut characters |
430 | | - * The following characters are mapped: |
| 425 | + * Converts the string to upper case and replaces Germanic umlaut characters The following characters are mapped: |
431 | 426 | * <ul> |
432 | 427 | * <li>capital A, umlaut mark</li> |
433 | 428 | * <li>capital U, umlaut mark</li> |
|
0 commit comments