🐛 Use the correct default values for Double and Float ranges in the StandardParserRegistry
This commit is contained in:
parent
118005978f
commit
9a5c674f0d
2 changed files with 7 additions and 4 deletions
|
|
@ -113,13 +113,13 @@ public final class StandardParserRegistry<C> implements ParserRegistry<C> {
|
|||
));
|
||||
this.registerParserSupplier(TypeToken.get(Float.class), options ->
|
||||
new FloatArgument.FloatParser<>(
|
||||
(float) options.get(StandardParameters.RANGE_MIN, Float.MIN_VALUE),
|
||||
(float) options.get(StandardParameters.RANGE_MAX, Float.MAX_VALUE)
|
||||
(float) options.get(StandardParameters.RANGE_MIN, Float.NEGATIVE_INFINITY),
|
||||
(float) options.get(StandardParameters.RANGE_MAX, Float.POSITIVE_INFINITY)
|
||||
));
|
||||
this.registerParserSupplier(TypeToken.get(Double.class), options ->
|
||||
new DoubleArgument.DoubleParser<>(
|
||||
(double) options.get(StandardParameters.RANGE_MIN, Double.MIN_VALUE),
|
||||
(double) options.get(StandardParameters.RANGE_MAX, Double.MAX_VALUE)
|
||||
(double) options.get(StandardParameters.RANGE_MIN, Double.NEGATIVE_INFINITY),
|
||||
(double) options.get(StandardParameters.RANGE_MAX, Double.POSITIVE_INFINITY)
|
||||
));
|
||||
this.registerParserSupplier(TypeToken.get(Character.class), options -> new CharArgument.CharacterParser<>());
|
||||
this.registerParserSupplier(TypeToken.get(String[].class), options -> new StringArrayArgument.StringArrayParser<>());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue