Commit a9a0dd8
authored
LANG-771 Fix DateUtils.ceiling increment on exact boundary (#1609)
* LANG-771 Fix DateUtils.ceiling increment on exact boundary
* Fix Checkstyle violations for LANG-771
* LANG-771 Add edge case tests for DateUtils.ceiling()
Add tests for:
- Epoch (0)
- Negative date (-1)
- Long.MIN_VALUE and Long.MAX_VALUE handling
- Minute boundary case1 parent b56c688 commit a9a0dd8
2 files changed
Lines changed: 23 additions & 1 deletion
File tree
- src
- main/java/org/apache/commons/lang3/time
- test/java/org/apache/commons/lang3/time
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
| 1118 | + | |
| 1119 | + | |
1118 | 1120 | | |
1119 | 1121 | | |
1120 | 1122 | | |
| |||
1161 | 1163 | | |
1162 | 1164 | | |
1163 | 1165 | | |
1164 | | - | |
| 1166 | + | |
1165 | 1167 | | |
1166 | 1168 | | |
1167 | 1169 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
| |||
531 | 533 | | |
532 | 534 | | |
533 | 535 | | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
534 | 554 | | |
535 | 555 | | |
536 | 556 | | |
| |||
0 commit comments