Add invariant check in StrategyAndWidth constructor
This commit is contained in:
parent
afb8f7e9bb
commit
861d191505
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue