< prev index next >

src/java.base/share/classes/java/text/ChoiceFormat.java

Print this page

        

@@ -347,11 +347,11 @@
      * if the object is a NumberFormat, then ((NumberFormat) Y).format(X)
      * is called. Otherwise Y.toString() is called.
      * @exception NullPointerException if {@code limits} or
      *            {@code formats} is {@code null}
      */
-    public void setChoices(double[] limits, String formats[]) {
+    public void setChoices(double[] limits, String[] formats) {
         if (limits.length != formats.length) {
             throw new IllegalArgumentException(
                 "Array and limit arrays must be of the same length.");
         }
         choiceLimits = Arrays.copyOf(limits, limits.length);
< prev index next >