Commit 047d247
CODEC-312: Fix possible StringIndexOutOfBoundException thrown by MatchRatingApproachEncoder.encode() method (#220)
* CODEC-312: Fix possible StringIndexOutOfBoundException
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
* CODEC-312: Add unit test
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
* Remove unmaintained comments
---------
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
Co-authored-by: Gary Gregory <garydgregory@users.noreply.github.com>1 parent a2e542d commit 047d247
2 files changed
Lines changed: 24 additions & 14 deletions
File tree
- src
- main/java/org/apache/commons/codec/language
- test/java/org/apache/commons/codec/language
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
129 | 134 | | |
130 | 135 | | |
131 | 136 | | |
132 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
133 | 143 | | |
134 | 144 | | |
135 | 145 | | |
| |||
Lines changed: 14 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
248 | 246 | | |
249 | 247 | | |
250 | 248 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | 249 | | |
256 | 250 | | |
257 | 251 | | |
| |||
297 | 291 | | |
298 | 292 | | |
299 | 293 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | 294 | | |
305 | 295 | | |
306 | 296 | | |
| |||
433 | 423 | | |
434 | 424 | | |
435 | 425 | | |
436 | | - | |
437 | | - | |
438 | 426 | | |
439 | 427 | | |
440 | 428 | | |
| |||
470 | 458 | | |
471 | 459 | | |
472 | 460 | | |
473 | | - | |
474 | | - | |
475 | 461 | | |
476 | 462 | | |
477 | 463 | | |
| |||
519 | 505 | | |
520 | 506 | | |
521 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
522 | 522 | | |
0 commit comments