mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8327640: Allow NumberFormat strict parsing
Reviewed-by: naoto
This commit is contained in:
parent
2ede14335a
commit
941bee197f
12 changed files with 1569 additions and 103 deletions
|
@ -586,6 +586,18 @@ public class ChoiceFormat extends NumberFormat {
|
|||
return Double.valueOf(bestNumber);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isStrict() {
|
||||
throw new UnsupportedOperationException(
|
||||
"ChoiceFormat does not utilize leniency when parsing");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStrict(boolean strict) {
|
||||
throw new UnsupportedOperationException(
|
||||
"ChoiceFormat does not utilize leniency when parsing");
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the least double greater than {@code d}.
|
||||
* If {@code NaN}, returns same value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue