Add invariant check in StrategyAndWidth constructor

This commit is contained in:
Gary Gregory 2023-08-10 14:10:43 -04:00
parent afb8f7e9bb
commit 861d191505
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ public class FastDateParser implements DateParser, Serializable {
final int width; final int width;
StrategyAndWidth(final Strategy strategy, final int width) { StrategyAndWidth(final Strategy strategy, final int width) {
this.strategy = strategy; this.strategy = Objects.requireNonNull(strategy, "strategy");
this.width = width; this.width = width;
} }