We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a520887 commit ca3bdfcCopy full SHA for ca3bdfc
src/java.base/share/classes/java/text/ChoiceFormat.java
@@ -235,8 +235,9 @@ public class ChoiceFormat extends NumberFormat {
235
/**
236
* Apply the given pattern to this ChoiceFormat object. The syntax
237
* for the ChoiceFormat pattern can be seen in the {@linkplain ##patterns
238
- * Patterns} section.
239
- *
+ * Patterns} section. Unlike {@link #setChoices(double[], String[])} this
+ * method will throw an {@code IllegalArgumentException} if the {@code
240
+ * limits} are not in ascending order.
241
* @param newPattern a pattern string
242
* @throws NullPointerException if {@code newPattern}
243
* is {@code null}
0 commit comments